Hi,
ich will Zahlen automatisch nach Reihenfolge generieren:
<?php
//Verbindung 2 zu >NEUEN< Server
$sock2=mysql_connect("localhost","db","XXX");
mysql_selectdb("db",$sock2);
$max = 185; //Maximal Zahl
for($i=1; $i<= $max; i++){
$sql = mysql_query("INSERT INTO YYY (test) VALUES (.$i)")
}
?>
So und ich bekomme folgende Fehlermeldung:
Parse error: syntax error, unexpected T_INC, expecting ')' in Zeile 10 und dies ist folgende Zeile
for($i=1; $i<= $max; i++)Hilfeee!