
Originariamente inviata da
bomberdini
prova una cosa del genere:
codice:
$inserimento=mysql_query("INSERT INTO lezioni(id_utente,id_attivita) VALUES ((select id_utente from utente where nome=$nomeut and cognome=$cognomeut and indirizzo=$indirizzout ), (select id_attivita from attivita where (attivita.descrizione)=($corso)))") or die ("ERRORE!!?!".mysql_error());
posto il risultato:
ERRORE!!?!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 'romito 44 ), (select id_attivita from attivita where (attivita.descrizione)=(Cor' at line 1
comunque ripeto, le query prese e incollate a terminale con mysql, funzionano! quindi direi che il problema non sta li..!
Grazie!