I have this error but i can’t manage to find out the error.
INSERT INTO utilizadores (username, password, email, pais, cidade, data_registo, tipo_conta, estado_conta, creditos)
values (admin, 6910b64010c9660ad77d9bb7adb43e75, admin@iol.pt, just4, test, now(), '1', '2', '5')
It says: 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 ‘@xd.vbudfg, ugwfghuifweui, ugwefg, now(), ‘1’, ‘2’, ‘5’)’ at line 1
You’re missing quotes round many of your strings. For example, the email,
admin@iol.ptshould be'admin@iol.pt'.Your query should read:
Note that if the last three values have a numerical data-type, you won’t need quotes.