Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/s/k/e/skeem/html/space4me/functions.php on line 42Here is the error before the footer:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/s/k/e/skeem/html/space4me/functions.php on line 50
Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/k/e/skeem/html/space4me/functions.php:42) in /home/content/s/k/e/skeem/html/space4me/index.php on line 73
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/s/k/e/skeem/html/space4me/functions.php on line 76
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/s/k/e/skeem/html/space4me/functions.php on line 77
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/s/k/e/skeem/html/space4me/functions.php on line 130
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/s/k/e/skeem/html/space4me/functions.php on line 131
Here is the code they refer to, it seems to be the same call or function for each error:
This is lines 38 to 50
[PHP]
function sql_execute($sql_query,$wtr){
global $conn_id;
$sql_res=mysql_query($sql_query,$conn_id);
if($wtr=='get'){
if(mysql_num_rows($sql_res)){ <====PROBLEM LINE
return mysql_fetch_object($sql_res);
}
else {
return '';
}
}
elseif($wtr=='num'){
return mysql_num_rows($sql_res); <====PROBLEM LINE
[/PHP]
Here are lines 72 to 78:
[PHP]$sql="select * from banners where b_blk='N' and b_typ='H' and b_exp='N'";
$res=mysql_query($sql); <====PROBLEM LINE
$dis=array();
$dis_id=array();
$num=mysql_num_rows($res); <=====PROBLEM LINE
if(mysql_num_rows($res)) { <=====PROBLEM LINE
while($row=mysql_fetch_object($res)) {
Here are lines 130 and 131:
$num=mysql_num_rows($res);
if(mysql_num_rows($res)) {[/PHP]
To me it seems to be the same problem over and over again, but Im new to all of this. Any help would be appreciated.
Thanks in advance.
Matt