Just a quickie for you
i have this
$un = ($_POST['username']);
$pw = ($_POST['password']);
if (mysql_num_rows(mysql_query("SELECT * FROM Forum_Users WHERE username = ".$un." AND password = ".$pw."",$connection))>0) {
header("location:ForumMain.php");
}else{
echo "Username and/or password incorrect<br><br>Click <a href='ForumLogin.php'>here</a> to try again";
}
but i get this error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site13/fst/var/www/html/ForumLoginCheck.php on line 12
I cant figure out whats wrong with it. Anyone see something that i'm missing??
Cheers, BIOSTALL