Subfader: Variable Anzahl an identischen Inserts aus Formular heraus

Beitrag lesen

Ich konntrolliere das schon, füge aber hier nicht jedesmal den ganzen Rattenschwanz ein...
Ich dachte halt ich darf nichts innerhalb von $sql bedingen. Ok also doch values loopen?

$sql = "INSERT INTO adding (title, content) VALUES
   for ($i=1; $i<=$times; $i++ )
     {
      ('".$_POST['title']."', '".$_POST['content']."')
     }
";

So ist $i undefined. Im obrigen beispiel mit for { $sql hat er wenigstens einmal eingefügt. :/