Question
If Recordset not empty redirect
I am trying to find a code that will work for a redirect. I want to check a recordset and if there is information there, I need to redirect them to a different page. I have tried this code
<?php
if($totalRows_basic_info > 0) {
header ("Location:http://localhost/nameupdate.php");}
?>
This code is not working, can anyone help me with a recordset not empty redirect statement?
