I have one log in page, in which user has to enter his email id, which he has used during sign up. After clicking on submit, it redirects to verify.php If email id is correct,(for storing sign up information, DB is used.) verify.php redirects to download.php page. Sign in is working fine on localhost.(Xampp) But after making it live, submit redirects to verify.php, but shows blank page. After applying error reporting, following errors are coming. Find below attachment for error and verify.php file.
<?php
error_reporting(E_ALL);
ini_set('display_errors','1');
$db = new mysqli("localhost", "root", "", "testembark");
$email = $_POST['email'];
$email = stripslashes($email);
$sql = "SELECT * FROM signup WHERE email='$email'";
$result = mysqli_query($db,$sql) or die(mysqli_error($db));
$row_cnt = mysqli_num_rows($result);
if($row_cnt==1){
session_start();
$_SESSION['email']= $email;
header("location:download-product.php");
else {
echo "Wrong Email";
}
?>