Jump to content
Killersites Community
Sign in to follow this  
don_miles1

Using insertion wizard--getting syntac error

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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!

 

:D

 

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

Share this post


Link to post
Share on other sites

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!

 

:D

 

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×