is there a general description or method of troubleshooting for these errors?? :
Warning: Supplied argument is not a valid MySQL result resource in /httpdocs/results.php on line 44
Here is a snippet of the code that is causing this error.
// if the first name has value
if ($HTTP_POST_VARS['first']){
$query = $query." first LIKE ='$form_first%'";
}
// if the last name has value
if ($HTTP_POST_VARS['last']){
$query = $query. " and last LIKE = '$form_last%'";
}
// if city has a value
if ($HTTP_POST_VARS['city']){
$query = $query. " and city LIKE = '$form_city%'";
}
// if state has a value
if ($HTTP_POST_VARS['state']){
$query = $query. " and state LIKE = '$form_state%'";
}
$result = mysql_query($query);
$row = mysql_fetch_array($result); // THIS IS LINE #44
echo $row[First];
?>
Thanks