Re: [PHP-DB] Inserting checkbox data

2002-10-25 Thread Graeme McLaren
al Message - From: "Mihail Bota" <[EMAIL PROTECTED]> To: "Graeme McLaren" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 7:47 PM Subject: Re: [PHP-DB] Inserting checkbox data > Graeme, > > first, extend the for loop ov

RE: [PHP-DB] Inserting checkbox data

2002-10-25 Thread Hutchins, Richard
robably cause your SQL statement to error out. Just my two cents. > -Original Message- > From: Graeme McLaren [mailto:mickel@;ntlworld.com] > Sent: Friday, October 25, 2002 2:40 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Inserting checkbox data > > > Hi all, I'm ha

Re: [PHP-DB] Inserting checkbox data

2002-10-25 Thread Mihail Bota
Graeme, first, extend the for loop over the "if" and the query for insertion of data. As you have it now, it just inserts the last element of the array. second, I think that the for loop should be $a<$number. if you put <=, then the loop is processing the array with the last value not assigned by

[PHP-DB] Inserting checkbox data

2002-10-25 Thread Graeme McLaren
Hi all, I'm having a problem inserting a value from a checkbox into a MySQL DB. I can print out what the variable holds, the problem is it just won't go into the DB. Weird thing is when I login to SSH there isn't a NULL value for it instead that field is just blank. Anyone got any ideas what