PDA

View Full Version : Check if row exists in database


MyChemicalSelf
02-09-2010, 02:29 PM
Im currently working on something for gcbos that requires me to check if there is a record in the database (return mysql_num_rows($result > 0) ? true : false;) and i was wondering if vbulletin had this build into the database system (vbulletin->db). Any help is appreciated :)

compwhizii
02-10-2010, 04:10 PM
$vbulletin->db->num_rows($result);

MyChemicalSelf
02-11-2010, 01:41 PM
$vbulletin->db->num_rows($result);

Thanks, helped a lot!