I am retrieving the details from the database if the condition is satisfied. But when the condition is not satisfied, empty result is retrived. So how to have a condition if status is empty
My code
php
$sq=mysqli_query($link,$query);
$ro=mysqli_fetch_array($sq);
$status=$ro['status'];
if($status==1){
header("location: paymentPage.php");
}
else if($status==0){
header("location:login.php");
}
else if($status == '\0')
{
header("location:SignUp.php");
}
But i am not able to redirect to signup page if the status is empty. Can anyone help me solve this problem.Is status=='\0' is correct to go for signup page.
Thank You in advance.