PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi can anyone tell me why i am having an error in this code.
The error is mysql_fetch_array(): supplied argument is not a valid MySQL result resource.
Thanks
$quesry = "SELECT * FROM abouttbl
WHERE first_name LIKE '$first_name%'
AND last_name LIKE '$last_name%'"
$result = mysql_query ($query);
print $quesry;
$query = "SELECT * FROM abouttbl
WHERE first_name LIKE '$first_name%'
AND last_name LIKE '$last_name%'"
$result = mysql_query($query) or die($query.' :'.mysql_error());
print $query;