PHP Code:
<?
include("connect.php");
session_start();
session_register(username,password);
$result=mysql_query("select * from users where username='$username' and password='$password'");
$num=mysql_num_rows($result);
if($num < 1){
header("location: failed2.php");
}
?>
It always sends you to failed2.php. login.php likes my password but main.php doesn't. What I dont get is how the $username and $password variable can be passed from one .php file to another.
but anyway that code it straight from sde so it should work.
thanks again,
Trevor