Subfader: Variable Anzahl an identischen Inserts aus Formular heraus

Beitrag lesen

Gut das war falsch. Dachte halt wegen VALUES (1,2), (3,4), (5, 6).
Ich weiß halt nicht wie ich die sql $times mal loopen soll.

if ($_POST['times'] == NULL)
   {$times = array_keys(1)} else {$times = array_keys($_POST['times']}
foreach (...) {
$sql = "INSERT INTO table ( title, content) VALUES
("".$_POST['title']."", "".$_POST['content']."")";
}