Location: PHPKode > projects > VideoSplurge > includes/getrecordcount.php
<?php
function getrecordcount($tablename, $whereclause)
{
	$sql = "SELECT COUNT(*) AS numrows FROM $tablename WHERE $whereclause";
	$result = mysql_query($sql) or die(mysql_error());
	$row = mysql_fetch_row($result);
	$numrows = $row[0];
	return $numrows;
}
?>
Return current item: VideoSplurge