[PHP-DB] insert NULL to mysql table.

2003-07-02 Thread anders thoresson
Hi, I've the query "UPDATE un_issue SET i_editor = '$editor' WHERE i_date = '$issue'" where $editor = "/0" but the inserted value in un_issue.i_editor becomes 0. un_issue is defined as follows: CREATE TABLE un_issue ( i_id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, i_date DATE NO

Re: [PHP-DB] insert NULL to mysql table.

2003-07-02 Thread jeffrey_n_Dyke
net>cc: Subject: [PHP-DB] insert NULL to mysql table. 07/02/2003

Re: [PHP-DB] insert NULL to mysql table.

2003-07-02 Thread anders thoresson
UPDATE un_issue SET i_editor = null WHERE i_date = '$issue'" Thanks. But how come this works and sets i_editor to NULL "UPDATE un_issue SET i_editor = $editor WHERE i_date = \"$issue\"" but the following two gives me a sql-error "You have an error in your SQL syntax near 'WHERE i_date = ' at lin

RE: [PHP-DB] insert NULL to mysql table.

2003-07-02 Thread Hutchins, Richard
ry strings. I bet it'll be dead obvious to you if you give that a shot. Rich > -Original Message- > From: anders thoresson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 9:30 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [P