Jump to content

Not Searching The DB


lilman

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.