don_miles1 Posted February 11, 2010 Report Share Posted February 11, 2010 I am using Dreamweaver CS3, MySQL vs 5.1.37, php 5.3.0, and xamp 1.7.2 I am using the record insertion form wizard (I am sorely lacking in code skills) After I create the insertion form, I try to use it to insert a name (example Jack) into the fh-name column of the fh-info table and I get the following message: 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 '-name) VALUES ('jacks')' at line 1 Please help Thanks Don P.S. I am sending the code that Dreamweaver generates as an attachment. Quote Link to comment Share on other sites More sharing options...
administrator Posted February 11, 2010 Report Share Posted February 11, 2010 Hi, Apparently Dreamweaver is writing bad SQL code. That's the problem with using code-generators like Dreamweaver ... if it screws up, you're screwed. You have two options: 1. Start over and use the Dreamweaver tools to generate the connections and the queries. Nerd-note: 'queries' = code sent to the MySQL database that tells the database what to do. 2. Learn some basic PHP and solve all your problems! I'm telling you, it's not that hard if you give yourself a chance. Anyway, yet another example of what I've been saying for years about PHP; if you want to be a web designer today, you need to learn basic PHP and Javascript. Stefan Quote Link to comment Share on other sites More sharing options...
don_miles1 Posted February 12, 2010 Author Report Share Posted February 12, 2010 I subscribe to killer U. and it is excellent. I found my problem. It was that I was using hyphens where it was against the law. Thanks Don Hi, Apparently Dreamweaver is writing bad SQL code. That's the problem with using code-generators like Dreamweaver ... if it screws up, you're screwed. You have two options: 1. Start over and use the Dreamweaver tools to generate the connections and the queries. Nerd-note: 'queries' = code sent to the MySQL database that tells the database what to do. 2. Learn some basic PHP and solve all your problems! I'm telling you, it's not that hard if you give yourself a chance. Anyway, yet another example of what I've been saying for years about PHP; if you want to be a web designer today, you need to learn basic PHP and Javascript. Stefan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.