I am getting the following error:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\pictures\testingsearch.php on line 45
Could you please help to solve this error as I have tried numerous things however the error is still persistent, I believe it is my sql code that I am running prior to the while loop. The error occurs in the whileoop though.
My sql query is:
$sql = "SELECT pictures.idpic, pictures.name, pictures.info, pictag.tagpicID, pictag.pictagName, tagging.IDimage, tagging.tagpicID
FROM pictures, pictag, tagging
WHERE pictures.idpic = '$searchvalueentered '
OR pictag.tagpicID= '$searchvalueentered '
OR tagging.tagpicID= '$searchvalueentered '";