PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<? 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?
works great for cat=all but it does not check if single category is empty or not ( my bad i should have mentinoned that i have another reecordset also for single categories)