Code
$chkYr=getdate();
$sqlChk="SELECT * FROM cpg132_catagories WHERE name='".$chkYr['year']." Summer Camps'";
$sqlChk2=$dbconn->Execute($sqlChk);
$row=mysql_fetch_assoc($sqlChk2);
if (mysql_num_rows($sqlChk2) == 1) {
die('it worked');
}
$sqlChk="SELECT * FROM cpg132_catagories WHERE name='".$chkYr['year']." Summer Camps'";
$sqlChk2=$dbconn->Execute($sqlChk);
$row=mysql_fetch_assoc($sqlChk2);
if (mysql_num_rows($sqlChk2) == 1) {
die('it worked');
}
I am trying to check if the number of rows that a result set came back with. this way is not working for me. is there a better quicker way to determine how many rows a result set comes up with?
thanks
