Forum Moderators: coopster
<?php
$chk_id = $_REQUEST["User"];
$chk_pass = $_REQUEST["Pass"];
$move_on = Chkpass()
$connection = mysql_connect("localhost","mitchellk","mitchell06")
or die ("Invalid Username or Password, Please try again");
$db = mysql_select_db("mitchellk" , $connection)
or die ("Invalid Username or Password, Please try again");
$sql = "SELECT PASSWORD FROM 'tbl_People' WHERE PASSWORD = '$chk_id' ";
$result = mysql_query($sql)
or die("Password Failed");
$okid = mysql_fetch_row($result);
$sql = "SELECT USERNAME FROM 'tbl_People' WHERE USERNAME = '$chk_pass' ";
$result = mysql_query($sql)
or die("Username Failed");
$okid = mysql_fetch_row($result);
if (($chk_id <> $okpass[0]) or ($chk_pass <> $okid[0})) {
die ("YOU ARE NOT AUTHORIZED");
}
?>
It says I am getting the error on line 6 which is the following line.
$connection = mysql_connect("localhost","mitchellk","mitchell06")
or die ("Invalid Username or Password, Please try again");