Jump to content
Killersites Forums

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.

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

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

Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...