$get_user = "select * from users where user_email='$user'";
$run_user = mysqli_query($con, $get_user);
$row = mysqli_fetch_array($run_user);
This is my php code and at "$user= $_SESSION['user_email'];", it shows the notice of undefined index in user_email.
How do I fix it? I already tried to put if(isset()) for the above line but nothing changes.
Please suggest something to resolve this error.