lilman Posted December 28, 2006 Share Posted December 28, 2006 I've written search scripts before and it worked but this isn't working properly. I know there are titles that should be popping up but nothing. I presume it is the code, so I will post it. This baffles me so any help would be great. $search="SELECT * FROM bookrequest WHERE title like \"%$name%\"";$runsearch=mysql_query($search);Also, I have it print the sql statement and I get this:SELECT * FROM bookrequest WHERE title like \"%how%"\ Link to comment https://forums.phpfreaks.com/topic/32105-not-searching-the-db/ Share on other sites More sharing options...
AndyB Posted December 28, 2006 Share Posted December 28, 2006 $search="SELECT * FROM bookrequest WHERE title like '%$name%' "; Link to comment https://forums.phpfreaks.com/topic/32105-not-searching-the-db/#findComment-148989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.