如何从表 where = '$cat' 中选择结果,如果它不相等,则无论 $cat 是什么cat
都选择所有结果。cat
这是我的查询
$sql = mysql_query("SELECT * FROM `obiavi` WHERE `postdate`+`days`*86400 > $time AND `town` IN ('$oblasti') AND `desc` LIKE '%$keyword%' ORDER BY id DESC LIMIT $start, $perpage") or die (mysql_error());