Trying to test that a record doesn't exist on a table and am unable to work out how to code around a record set with zero rows It doesn't return 0, which sucks somewhat.

Anyone have any ideas

Code:
$q = "SELECT * FROM lb_group WHERE grp_id = '".$groupid."'";
			
$checkgroup = mysql_query($q, $connect);

$num = mysql_num_rows($checkgroup):

if(!$num) ??????????????