I am about to loose all sight of conscienceness if someone doesn't help me with this script! I really need it! Ok so here is the entire php script. Where do I end my if's?
---------login.php--------------
<?php
if(isset($loginnow)):
$db = mysql_connect("localhost");
mysql_select_db("olentangy", $db);
$sql = "select * from adminusers where user_id='$signinid'";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
$realusername =$row["user_username"];
$realpassword =$row["user_password"];
if($givenusername == $realusername) {
print("<h1>Bad Username </h1>");
return false;
exit;
}
if($givenpassword == $realpassword) {
print("<h1>Bad Password </h1>");
return false;
exit;
}
print("<h1>All is well, and you will be</h1>");
print("<meta http-equiv='refresh' content='3; url=index3.php'>");
print("</head><body><a href='index3.php'><font face='arial,helvetica'><b>If it does not come up. Please click here. This will take you back.</b></font></a></body>");
}
?>
---------Login.php-----------
Someone HELP ME!!! Thanks!
JakedUp