I know this question has been answered many time before but I have applied all things but none of them is working...
This is the code of mine which is in a class, I don't think there is any need to show the working out of the class, I have just passed parameters to class method...
I am stuck at header("Location:Home.php")
in this code.. its working on local host but not working on online server.
Every piece of code is working but when it comes to header it does not execute that line. I have tried thousands of time but failed. Please help me. Thanks
if($legal_status == "ok") {
mysqli_query($this->conn,"update users set current_login='$current_login',status='online' where email='$email'");
$_SESSION["id"] = $user_id;
session_regenerate_id(TRUE);
header("Location:Home.php");
}