if($step == "2"){
if(!$username){
$errors[] = "Please provide a <b>Username</b>\n";
}else{
if(!$password){
$errors[] = "Please provide a <b>Password</b>\n";
}else{
$sql = "SELECT * FROM users WHERE username = '$username'";
$res = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($res) > 0){
$sql2 = "SELECT * FROM users WHERE username = '$username' && password='$password'";
$res2 = mysql_query($res2) or die(mysql_error());
if(mysql_num_rows($res2) > 0){
}else{
$errors[] = "The <b>Username</b> and <b>Password</b> do not match!\n";
}
}else{
$errors[] = "The <b>Username</b> you supplied does not exist.\n";
}
}
}
if(count($errors) > 0){
echo "The following errors have occured!\n";
foreach($errors AS $error){
echo $error . "<br>\n";
}
}else{
$sql3 = "SELECT id FROM users WHERE username = '$username'";
$res3 = mysql_query($sql3) or die(mysql_error());
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum