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
$sq = mysqli_query($link, $query);
$ro = mysqli_fetch_array($sq);
$status = $ro['status'];
if ($status == 1) {
header("location: paymentPage.php");
} elseif ($status == 0) {
header("location:login.php");
} elseif ($status == '\0') {
header("location:SignUp.php");
}
But I am not able to redirect to signup page if the status is empty.Is status=='\0' is correct to go for signup page.