php - #1064 - You have an error in your SQL syntax;heck the manual that corresponds to your MySQL server version for the right syntax to use near -


the below query , when run in db shows error #1064 - have error in sql syntax;

  insert into`expense`(request,date,employee,load,truck,amount,purpose,mode,remark)       values ('$request','$date','$employee','$load','$truck','$amount','$purpose','$mode','$remark') 

can sumbdy help!!

date & load reserved keywords. use ticks -

insert `expense` (`request`,`date`,`employee`,`load`,`truck`,`amount`,`purpose`,`mode`,`remark`)   values ('$request','$date','$employee','$load','$truck','$amount','$purpose','$mode','$remark') 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -