Hi!,
Need a little help... thanks in advance!!!!
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/exponentialprofi/public_html/affiliates/topreferrals.php on line 22
(code in question)
<?php
$dsplynumreftop="5";
$qryreftop = "SELECT usrnam, (usrpoints + usrpointsindirect) AS maxpoints FROM scraffiliateusr ORDER BY maxpoints desc";
$rslreftop=mysql_query($qryreftop);
//$arrreftop = mysql_fetch_row($rslreftop);
$nreftop = mysql_num_rows($rslreftop);
for ($i=0; $i<$dsplynumreftop; $i++)
{
$arrreftop = mysql_fetch_row($rslreftop); <<<<<<<<<<<<<<<<<<< Line 22
echo "$arrreftop[0]<br>";
}
?>
Thanks,
duchaine