mysql error [+4rep]
#3

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_sexeVALUES ('%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.
Reply


Messages In This Thread
mysql error [+4rep] - by DarkZeroX - 28.04.2014, 10:05
Re: mysql error [+4rep] - by Conradus - 28.04.2014, 10:23
Re: mysql error [+4rep] - by Vince - 28.04.2014, 10:30
Re: mysql error [+4rep] - by DarkZeroX - 28.04.2014, 10:36
Re: mysql error [+4rep] - by Aliassassin123456 - 28.04.2014, 17:57

Forum Jump:


Users browsing this thread: 3 Guest(s)