Hello,
I am very new to php so please bare with me.
I am getting an error of:
"Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/home/www.xxx.com/xxx/xxx/online.php on line 176"
The code is:
$content.= $s;
}
}
function showAll(){
global $PATHTO_IMAGES, $DB_ONLINEPUB, $content;
$mysqlDataAllPub = mysql_query( "SELECT * FROM $DB_ONLINEPUB WHERE `publish` = '1' ORDER BY `name` ASC");
$dataLengthAllPub = mysql_num_rows($mysqlDataAllPub); //echo "HELLO DATALENGTH=" .$dataLengthAllPub;
$count = 0;
$s='';
for ($i=0; $i< $dataLengthAllPub; $i++ ) {
$online_pubID = mysql_result( $mysqlDataAllPub , $i, pubID );
$online_name = mysql_result( $mysqlDataAllPub , $i, name );
$online_orderID = mysql_result( $mysqlDataAllPub , $i, orderID );
$s.= '<li >
<div id="showallmod">
<div class="con">'
.showAllIssues($online_pubID).
'</div>
</div>
</li>';
}
$content= $s;
}
I'm not sure even where to begin troubleshooting this.
I thank you in advance for your help