IF then statement if no records returned by query
I want display a custom message if no records returned:
mysql_select_db($database_dbtpg, $dbtpg);
$query_Recordset1 = "SELECT * FROM products WHERE ProductCategoryID = 'Camark'";
If no records then
custom message
else goto line number or something like this
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $dbtpg) or die(mysql_error());
Thanks Dan
www.thepotteryguys.com