How to select results from table where cat
= '$cat' and if it's not equal then select all from cat
no matter what $cat is.
Here is my query
$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());