Hi,
This is very basic, and have done this before many times, however, for whatever reason this is returning an error.
<html>
<body>
<?php
$host="";
$uname="username";
$pass="password";
$connection= mysql_connect($host,$uname,$pass);
if (!connection)
{
die("A connection to the Server could not be established!");
}
else
{
$result = mysql_query("SELECT * FROM reseller");
while ($row=mysql_fetch_array($result))
{
echo $row["username"];
}
}
?>
</body>
</html>
When this is run I get this error....
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cadenza/public_html/reseller/members/checklogin.php on line 15
Line 15 is the while line....
Thanks,
Josh