Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End what is wrong in these codes php, sql Re: what is wrong in these codes php, sql

#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.