Warning: Supplied argument is not a valid MySQL result resource in /home/pineftp/www/pages/functions.inc on line 472 That is the sql error.. LINE 472: $r = mysql_fetch_array($result); 473: $uname = $r['uname']; 474: $check = $r['check']; 475: echo $uname; 476: echo $pass;
Thanks for your help Anthony
I am not completly sure, BUT i've always used sth. like this:
$sql = "SELECT * FROM foo"; $res = mysql_query($sql,$db); while ($myrow = mysql_fetch_array($res)): $foo = $myrow[0]; endwhile;
It means your sql query (the one that assigned a value to $result) failed.
Use mysql_error() to find out what the mysql back end didn't like about your query.