Hi!
My first question is, "where is the variable $db defined?"
It doesn't appear in this script, so unless this is only an excerpt, I wouldn't expect $result to obtain any value from the database query.
That said, if you would allow a little criticism in the form of a suggestion, you could stand to add some error-checking capability to your script. For example:
<?php
$searchstring=$_GET['searchstring'];
if ($searchstring)
{
$sql=" select * from searchstatic where $searchtype like '%$searchstring%' order by title ASC";
$result=mysql_query($sql,$db) ;
if (!$result) {
echo "An error has occurred! The database query returned empty!";
}
Now, this doesn't necessarily fix your problem, but it's part of debugging: successfully determining *where* to look for your bugs ....
HTH,