<p>I have a page with 3 layers, one for navigation, one for database records and one for results. When I click on a database record, the results are displayed in the result layer via ajax. For navigation, the links will simply be different queries. I am wondering if it would make sense to have each different query be sent as ajax data and palced into the records layer, or rather to have the query appended to the php file each time. Which is the more efficient approach?</p>

Your
```
<script>
```
tag is never closed and your
JavaScript
instructions are not ended with semicolons. It might be the source of the problem.