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
Post a Comment