Is there any way to get a count of the null fields in 1 record?
Assuming "record" means array, yes. Just loop through all of the entries and then count which ones are not set: for ($i=0;$i<=count($array);$i++) { if ($array[$i] == "") { $nullcount ++; } }