Jump to content

Error on UPDATE - what am I not seeing?


dfowler

Recommended Posts

Hey guys, I have a database of DVDs that I am building a CMS system to handle.  I'm currently getting an error with an update statement that is built on the edit portion of the CMS.  The table setup is as follow:

 

Column

Type

Collation

Attributes

Null

Default

Extra

id

int(10)

[/td]

No

None

AUTO_INCREMENT

title

varchar(200)

latin1_swedish_ci

No

year

int(5)

Yes

NULL

actors

text

latin1_swedish_ci

Yes

NULL

genre

text

latin1_swedish_ci

Yes

NULL

series

varchar(200)

latin1_swedish_ci

Yes

false

order

int(10)

Yes

0

img_name

varchar(200)

latin1_swedish_ci

Yes

NULL

img_location

varchar(200)

latin1_swedish_ci

Yes

NULL

[td]

 

Here is my statement:

UPDATE dvds SET title='American Pie', year='1999', actors='Jason Biggs, Chris Klein, Thomas Ian Nicholas, Eddie Kaye Thomas, Seann William Scott, Alyson Hannigan, Tara Reid, Mena Suvri, Shannon Elizabeth, Natasha Lyonne, Eugene Levy, Molly Cheek, Chris Owen, Jennifer Coolidge, John Cho, James DeBello', genre='teen, comedy', series='American Pie', order='1' WHERE id='13'

 

Here is the error I am seeing:

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 'order='1' WHERE id='13'' at line 1

 

I have tried redoing the statement removing the quotes from the INT fields.  However, still see the same error.  I am 100% lost here as I can't see what is wrong at all.  I'm sure I am just missing something.  Thanks for any help!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.