Jump to content

[SOLVED] Search help


forumnz

Recommended Posts

I want my script to search more than one field in a table, but whenever I add more than 1 i get error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/www/vhosts/somewhere.com/httpdocs/clickme/search2.php on line 36

 

Code snippet:

$query = "select * from clickme where 'keywords', 'buzzname' like \"%$trimmed%\"  
  order by keywords";

 

Thanks,

Sam.

Link to comment
https://forums.phpfreaks.com/topic/83200-solved-search-help/
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.