If statement in another if statement
Posted: Wed May 24, 2006 1:09 pm
I have this :
that code will check if user wants to view all categories or a single product category BUT now i have another problem i need also to check if record count is 0 and in that case just echo "recordset is empty". so what is the correct way yo implement that second if?
or there is another way to solve the problem
thanks
Code: Select all
<? if ($_GET['cat']=="all"){
require_once('Connections/allcat.php');
}
else
require_once('Connections/singlecat.php');
?>that code will check if user wants to view all categories or a single product category BUT now i have another problem i need also to check if record count is 0 and in that case just echo "recordset is empty". so what is the correct way yo implement that second if?
Code: Select all
if ($totalRows_product=="0") {....thanks