"; $strError1="Error Number: ".mysql_errno().$BR; $strError2="Error Description: ".mysql_error.$BR; $strError5="Query: ".$strsql.$BR.$BR."strWhere: ".$strWhere.$BR; $strError0=$BR.$strError0.$strError1.$strError2.$strError5; echo $strError0; break; } else { $intTotalRecs=mysql_num_rows($result); if ($intTotalRecs>0) mysql_query("UPDATE stats_day SET hits = hits + 1 WHERE date='$date'"); else mysql_query("INSERT INTO stats_day SET date='$date',hits='1'"); } mysql_close(); ?>