|
|
#1 | ||
|
Registered User
Join Date: Jul 2004
Location: Denton, Texas
Posts: 505
|
I'm trying to learn MySQL using ASP and I'm getting a syntax error when I try to add a row to an empty table I created, does anyone know what's wrong with the last line of the code I'm using? Or anything else for that matter. It seems to connect to MySQL but I get the error message below. The name of the table in MySQL is 'order' so that part should be okay, I think, at least I looked and it shows the name 'order'. The 'id' element is auto incrementing and I've tried leaving it out of the update list too. Thanks for any help.
CODE Quote:
Quote:
__________________
Antec-SOLO | ASUS-P5Q-SE | C2D-E8600 | AC-Freezer-7-Pro | Seasonic-S12-550W | 3GB-KVR-PC2-6400 | GTX-560Ti | SB-XtremeGamer | Pioneer-BDR-205 | Samsung-S223B | Dell-U2412M |
||
|
|
|
|
|
#2 | |
|
<duct tape>C</duct tape>
Join Date: Nov 2007
Location: Ohio
Posts: 73
|
order is an SQL keyword. If you are going to use it as a table name try surrounding it with these goofy quote marks (not sure what its called, on same key as tilde ~) like this:
Code:
INSERT INTO `order` (id, type, pn, cc) VALUES (NULL, 'SDP3430', '910', '5486') |
|
|
|
|
|
|
#3 | |
|
Registered User
Join Date: Jul 2004
Location: Denton, Texas
Posts: 505
|
Quote:
I fought with this all day yesterday.I deleted the table and created a new one using sdp_orders as the name and now I can add rows from the on-line manager. I'll go modify my asp code and see if that works too. I'll let you know after I do that, thanks again. EDIT: I modified my asp code and it works now too, many thanks. I came so close to using sdp_orders for the table name but I had already created it and didn't know how to change the name so I left it alone. Man, what a mistake Thanks again for your help.
__________________
Antec-SOLO | ASUS-P5Q-SE | C2D-E8600 | AC-Freezer-7-Pro | Seasonic-S12-550W | 3GB-KVR-PC2-6400 | GTX-560Ti | SB-XtremeGamer | Pioneer-BDR-205 | Samsung-S223B | Dell-U2412M |
|
|
|
|
|
|
#4 | |
|
<duct tape>C</duct tape>
Join Date: Nov 2007
Location: Ohio
Posts: 73
|
Glad to help. So... when can I expect that cookie?
![]() |
|
|
|
|
|
|
#5 | |
|
Registered User
Join Date: Jul 2004
Location: Denton, Texas
Posts: 505
|
Quote:
![]()
__________________
Antec-SOLO | ASUS-P5Q-SE | C2D-E8600 | AC-Freezer-7-Pro | Seasonic-S12-550W | 3GB-KVR-PC2-6400 | GTX-560Ti | SB-XtremeGamer | Pioneer-BDR-205 | Samsung-S223B | Dell-U2412M |
|
|
|
|
|
|
#6 | |
|
<duct tape>C</duct tape>
Join Date: Nov 2007
Location: Ohio
Posts: 73
|
I must be a geek because I find that hilarious!
![]() |
|
|
|
|
|
|
#7 | |
|
Registered User
Join Date: Jul 2004
Location: Denton, Texas
Posts: 505
|
Quote:
![]() I created a demo for my boss and he already has plans for it. So you helped me get another job at work ![]()
__________________
Antec-SOLO | ASUS-P5Q-SE | C2D-E8600 | AC-Freezer-7-Pro | Seasonic-S12-550W | 3GB-KVR-PC2-6400 | GTX-560Ti | SB-XtremeGamer | Pioneer-BDR-205 | Samsung-S223B | Dell-U2412M |
|
|
|
|
|
|
#8 |
|
<duct tape>C</duct tape>
Join Date: Nov 2007
Location: Ohio
Posts: 73
|
|
|
|
|
|
|
#9 | |
|
Registered User
Join Date: Jul 2004
Location: Denton, Texas
Posts: 505
|
Quote:
I swear, the checks in the mail ![]()
__________________
Antec-SOLO | ASUS-P5Q-SE | C2D-E8600 | AC-Freezer-7-Pro | Seasonic-S12-550W | 3GB-KVR-PC2-6400 | GTX-560Ti | SB-XtremeGamer | Pioneer-BDR-205 | Samsung-S223B | Dell-U2412M |
|
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MySQL 5.5.25 | News | Latest Tech And Game Headlines | 0 | 06-15-12 06:00 AM |
| Overclocking Core i7-3770K: Learning To Live With Compromise | News | Latest Tech And Game Headlines | 0 | 05-24-12 02:50 AM |
| nvidia: Interested in learning more about Dynamic Parallelism in CUDA, read our white | News | Latest Tech And Game Headlines | 0 | 05-16-12 09:00 PM |
| MySQL 5.5.24 | News | Latest Tech And Game Headlines | 0 | 05-09-12 06:10 AM |