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 rowsIt 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) ??????????????




It doesn't return 0, which sucks somewhat.
Reply With Quote