You can insert multiple rows into the database but seperating them with commas. For instance
$sql = "INSERT INTO table
(field1, field2, field3)
VALUES
('".$value[0]."', '".$value[1]."', '".$value[2]."'),
('".$value[3]."', '".$value[4]."', '".$value[5]."'),
('".$value[6]."', '".$value[7]."', '".$value[8]."')";
mysql_query($sql);
So you could probably loop through your array or implode to build your query, then use one command to execute it. Though, this does cause trouble when troubleshooting.