still having login problems sigh
| From: | Andy B | Date: | Thu, 25 Mar 2004 04:59:30 +0000 |
| Subject: | still having login problems sigh | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181443@lists.php.net to get a copy of this message | ||
hi...
still having login problems..
i tried just about everything i can think of to get this to work but for some strange reason it
keeps getting stuck...
[code]
<?
session_start();
include("libs/conf.db");
mysql_connect($host, $mysqluser, $mysqlpwd);
$result=mysql_query("select * from rnjresort.users where username='$username' and
pwd=md5('$password')");
if(mysql_num_rows($result)==0) {
echo "<h1>Login failed</h1>";
header("location: login.html"); }
else {
$_SESSION[username]=$username;
header("location: deletepost.php"); }
?>
[/code]