Qué es este error:
select * from Comercials where other = 1
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dbeach/public_html/php/sr.php on line 131
No records was found
Si la tabla tiene records con ese argumento. Un monton con other = 1.
Entócnes?
La linea 131 tiene:
$result = mysql_query($sqlquery);
antes de esa linea:
if ($y !=""){
$sqlquery= "select * from Comercials where cid = ".$y."";
}Else{
$sqlquery= "select * from Comercials where ".$field." = 1";
}
echo $sqlquery;
$result = mysql_query($sqlquery);
$num_results = mysql_num_rows($result);
if ($num_results >0){
echo "<table width='100%' border='0' cellspacing='3' cellpadding='0'>";
Gracias!