this is the error :
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in index.php on line 147
this the code:
break;
case "10":
$result = mysql_query("SELECT pr_code, pr_totbedrooms, pr_name, pr_sellingprice, pr_descuk, (select prtypology_uk from prtypology where prtypology_code=$criteria_property) AS property_type FROM property WHERE (property.pr_type='0$criteria_property,' OR property.pr_type LIKE '%,0$criteria_property,%' OR property.pr_type LIKE '%$criteria_property,%') AND property.pr_publishonottk=-1");
$num = mysql_num_rows($result);
echo "<h2>Found objects: $num </h2>";
if ($num>10){
-----------------------------
why does it work on some server and some of them it don't please help





Bookmarks