Jump to content

search list menu


ctcp

Recommended Posts

If you ONLY have two types then just don't include the type in the WHERE clause, if you have more than 2 type and want to limit the results just to those 2 then try this

 

$name = "xyz";
$SQL = sprintf("SELECT * FROM db WHERE name LIKE '%s' AND (`type`= 'Game' OR `type`='Movie') ORDER BY name","%".mysql_real_escape_string($name)."%")

 

Also this is the wrong place to post this, (i'll move it)

Link to comment
https://forums.phpfreaks.com/topic/162836-search-list-menu/#findComment-859274
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.