I get the error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/jarodco/public_html/login/login.php on line 30 when logging in.
I think what's happening is that you have an incorrect sql query syntax, causing mysql_num_rows(x); to have a null value.
You;re using $_SESSION to get a result, but if there's no session [via the conversion from GET to SESSION, it will have a null result of course.
Try replacing that area of code w/this:
PHP Code:
// convert username and password from _GET to _SESSION
if($_POST){
$_SESSION['username']=$_POST["username"];
$_SESSION['passwort']=$_POST["passwort"];
}
Replace all GET with POST, that's basically it.
HTH

Bookmarks