Quote:
Originally Posted by Conradus
I think strings need to be in qoates in a mysql query, can you give this a try?
|
You are correct about the quotes, but you still placed them in the wrong place. It is the values that need to be enclosed, not the field names;
PHP код:
INSERT INTO comptes (p_nom,p_mdp,p_email,p_origine,p_inscription_id,p_sexe) VALUES ('%s', '%s', '%s', %d, '%s', %d)
And @OP: NEVER pass inputtext directly into a query! This is extremely dangerous. Use mysql_format or mysql_real_escape_string when inserting user input (from a text, command or dialogbox) into a query.