Duh,
Write a function that will check all the fields.
if your fields are
<input type=text name=rows[]>
<input type=text name=rows[]>
function is_blank($row)
{
for($i=0; $i<count($row); $i++)
if($row[$i]=="")
return -1;
return 1;
}
When input is submitted just check it
if(is_blank($row)==-1)
{
display_error();
exit;
}
//Lines below would execute only if checks were passed
store_data_in_mysql($row);
I gave you array variable (row[]) notation, because it is easier to deal with than multiple name variables, however the principle will apply to any situation. (If checks failed display errors, and kill the script...)
Di