I recently made an ajax/php script to query a database.
I had the ajax page and the request page seperate unlil I got it working but when I did merge then I came about a problem.

The problem arises at the merge in the if else statement. I have
PHP Code:

if ($_SERVER['QUERY_STRING']){.....etc.....};
else { 

//start of html
I canneot get this to work,
any help would be appreciated,