Home › Forums › Back End › what is wrong in these codes php, sql › Re: what is wrong in these codes php, sql
May 17, 2013 at 3:05 am
#135391
unasAquila
Participant
try this in the same place. add the `header(‘Location:index.php’)`;
if(mysql_num_rows($result) == 0) {
$error = ‘You have supplied a wrong user/password combination. Please try again.’;
$_SESSION = $error;
header(‘Location: index.php’);
}
Also and im so sorry i missed it you need `session_start()` at the top of both files.