Ich hab das nächste problem, eigendlich schon wieder das gleiche, nur ich hab jetzt eine Tablle die heißt 50, eine die heißt 100, eine heißt 200 usw.
So nun habe ich hierdas wobei $grade aus einem optionfeld geholt wird, in dem halt 50, 100 oda 200 usw. steht:
$sql="insert into $grade values ('','$frage','$ant1','$ant2','$ant3','$ant4','$richtig')";
$result=mysql_query($sql);
$result ist mal wieder leer
Die Tabelle:
Feld Typ Kollation Extra
id int(11) auto_increment
frage text latin1_german2_ci
ant1 varchar(120) latin1_german2_ci
ant2 varchar(120) latin1_german2_ci
ant3 varchar(120) latin1_german2_ci
ant4 varchar(120) latin1_german2_ci antrichtig varchar(10) latin1_german2_ci
So sehen alle der Tabellen aus
mfg
Alkatar
PS: phpmyadmin meldet bei
insert into 50 values ('','gf','df','fd','ert','fg','kjl'):
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '50 values ('','gf','df','fd','ert','fg','kjl')' at line 1