RE: [PHP] insert loop logic

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: 03 June 2003 23:25 > I am getting values from a form's checkboxes > (eg > > > etc) > > When i get these values I want to enter them into the database but > 1)I should enter only the first 5 (and ignore the rest) in

RE: [PHP] insert loop logic

2003-06-05 Thread Jennifer Goodie
> When i get these values I want to enter them into the database but > 1)I should enter only the first 5 (and ignore the rest) into the database > 2)it has to enter 1 record for every every "id" picked > eg: > if id[1], id[2],id[3] and id[4] were picked it should enter this as 4 > differient record

Re: [PHP] insert loop logic

2003-06-05 Thread Daniel J. Rychlik
perhaps, a foreach loop and use the empty () function. Thats how I did it. - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 5:24 PM Subject: [PHP] insert loop logic > Hi, > Can you tell me whats the best way of doing this plea