Here is my code:
[code]<?
include(“inc/connect_db.inc.php”);
if ($submit == “Login”){
$query=“SELECT * FROM users WHERE username=$username”;
$mysql_stuff = mysql_query($query, $mysql_link);
while($roc = mysql_fetch_row($mysql_stuff)){
$realpass=PASSWORD($roc[2]);
if ($pass == $realpass){
print("“);
}
}
} else {
print(”
Password:
"); } ?>[/code]
And the error I get, is
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virtual/site94/fst/var/www/html/logintest/login.php on line 6
the one I’ve seen many times (I take PHP in college) but I can’t remember what I did to remedy it. Any help?