Forum Moderators: coopster
$sql = 'SELECT count(reviewid) as num_times FROM reviews WHERE reviewid =' . $id;
I use this to get an average. But some times the average field is empty. So in the above I want to exclude it counting where the average is blank.