php - Run SQL for image “tagging” search function -


i trying code run search function in theory runs search image "tagging" have created databases , connection works fine. have set 3 tables 1 each part plays "tag image search" work. when running program , executing code not work , comes following error message:

notice: undefined variable: searchesvale in c:\xampp\htdocs\galleryviewer\searchingtags.php on line 33 

the code can shown below "sql select statement" trying run when searching "particular image tag" image retrieved gallery based on "tag keyword search".

   $searchvalueentered = $_post['searchvalue']; $sql = "select pictures.idpic, pictures.name, pictures.info, pictag.tagpicid, pictag.pictagname, tagging.idimage, tagging.tagpicid pictures, pictag, tagging pictures.idpic = '$searchvalue' , pictag.tagpicid= '$searchvalue' , tagging.tagpicid= '$searchvalue'"; 

$sql = "select pictures.idpic, pictures.name, pictures.info, pictag.tagpicid, pictag.pictagname, tagging.idimage, tagging.tagpicid pictures, pictag, tagging pictures.idpic = '**$searchvalue**' , pictag.tagpicid= '**$searchvalue**' , tagging.tagpicid= '**$searchvalue**'"; 

scroll right , highlighted variable $searchvalue. error says variable not defined. have variable $searchvalueentered defined, , $_post['searchvalue'], not $searchvalue.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -