Loading ...
Sorry, an error occurred while loading the content.

15666Need help with mysql error

Expand Messages
  • Gu®u
    Jun 7 3:21 AM
      Hi All,

      I am working a a project in which there is a table with some variables. I have a form with which I pull the filled data by user and want to put into mysql dtabase. Below is my query.

      $sql="INSERT INTO recipt (date, pt_name, age, od_sph, od_cyl, od_axis, os_sph, os_cyl, os_axis, add, d_sph, od_d, od_n, od1, os1)

      However I am getting an error saying:

      Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add, d_sph, od_d, od_n, od1, os1) VALUES ('12-12-2013','guru prasad','23','12'' at line 1

      I have tried gooling it but no luck. Please help me with this error.

      Thank you in advance.

      CEO & Founder at,
    • Show all 2 messages in this topic