questa è corretta?
Codice PHP:
$instabella="INSERT INTO $domanda (";
for (
$n=1$n<=$opt_n$n++) $instabella .= "opt$n, ";
$instabella .=") VALUES (";
for (
$n=1$n<=$opt_n$n++) $instabella .= "'0', ";
$instabella .=")"
a me non funge!
questo è il risultato, ma non viene eseguita..

INSERT INTO ecco (opt1, opt2, ) VALUES ('0', '0', )