Jump to content

Error on update to field of data type TEXT


eight17

Recommended Posts

I am creating a shopping cart with PHP/MySQL and have a table structured thus:

CREATE TABLE products (

 ID int(4) unsigned NOT NULL auto_increment,

 catID int(4) NOT NULL default \'0\',

 catID2 int(4) default \'0\',

 status int(2) NOT NULL default \'0\',

 title varchar(250) NOT NULL default \'\',

 desc text,

 price float default NULL,

 PRIMARY KEY  (ID)

) TYPE=MyISAM;

I can do a SQL update to every field in this table except \'desc\' and that one throws an error. Does anyone know what could cause this? Even a query as simple as \"UPDATE products SET desc=\'duh\' WHERE ID = 123\" calls me a loser!

 

Please 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.