Saluti, cerco di aggiornare un record conela seguente query, ma mi da errore di sintassi, potreste aiutarmi, grazie.
$query_update = "UPDATE t_utenti SET username_ut = '$username_ut', pass_ut = '$pass_3', nome_ut = '$nome_ut', cognome_ut = '$cognome_ut', grado_ut = '$grado_ut', WHERE username_ut = '$username_vecchio' AND pass_ut = '$pass_1'";
$result_update = mysql_query($query_update) or die(mysql_error());
questo è il msg di 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 'WHERE username_ut = 'ferrante' AND pass_ut = 'ferrante'' at line 1
Scusate, ma prima di WHERE NON ci va la virgola...![]()

Rispondi quotando