php - You have an error in your SQL syntax - near 'left) -


i'm newbie in php programming.

i apply insert query error :

you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'left) values ('****df','****2135gh','***@yahoo.com' @ line 2"}

$sql_insert_new_user = "insert users (username,password,email,status,finance,province,city,address,tell, mobile,admin_seen,type,left) values ('$username','$password','$email',1,0,$town,$city, '$address','$telephone','$mobile',0,'employe',0)";              mysql_query($sql_insert_new_user);             $error = mysql_error(); 

left reserved word , in query need escape backtics

`left` 

https://dev.mysql.com/doc/refman/5.5/en/reserved-words.html


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -