2010-10-24, 07:28 PM
Hi,
I need some help with a MyBB query.
I have a search form which finds all rows which are related to what is searched. For example, if I search "blue", it will return all rows with the word "blue" in it.
Here's what I'm using:
But it's not working.
What's the proper way to do this?
Thanks.
I need some help with a MyBB query.
I have a search form which finds all rows which are related to what is searched. For example, if I search "blue", it will return all rows with the word "blue" in it.
Here's what I'm using:
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."_tablename WHERE column LIKE %".$search_query."% ORDER BY id");
But it's not working.
What's the proper way to do this?
Thanks.