Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/name/public_html/display.php on line 5
This is the display.php file:
<?
include "connect.php";
$result = mysql_query("SELECT * FROM affilliates ORDER by RAND() LIMIT 0,3");
while($row = mysql_fetch_array($result)){
echo "<p><a href=\"www.domain.com/counter.php?outid=" . $row['id'] . "\" target=\"_blank\">
<img src=\"" . $row['ws_button'] . "\" width=88 height=31 alt=\"". $row['ws_name'] ."\" border=\"0\"></a><br>in: " . $row['countin'] . " | out: " . $row['countout'] . "</p>";
}
?>
The same error occurs when I attempt to open Affiliate.php the code can be found here:
<?
include "connect.php";
$result = mysql_query(" SELECT * FROM affilliates ORDER by RAND();");
while($row = mysql_fetch_array($result)){
echo "<p><a href=\"www.domain.com/counter.php?outid=" . $row['id'] . "\" target=\"_blank\">
<img src=\"" . $row['ws_button'] . "\" width=88 height=31 alt=\"". $row['ws_name'] ."\" border=\"0\"></a><br>in: " . $row['countin'] . " | out: " . $row['countout'] . "</p>";
}
?>
Edited by Hacker-X, 25 November 2005 - 06:36 AM.
