RE: [PHP] Re: ARRAY, IF & INSERT

2002-06-24 Thread César Aracena
> the name <> 0 was a sql-query - it will return a ressource which will > enable you to make something like > > $i=0; > while($row = mysql_fetch_assoc($nameless_result){ > > #psuedo-code# > # mysql_query=("insert into table set relativenumber = 'jr$i' where > ID=$row["ID"]"); > } [César L. Arac

Re: [PHP] Re: ARRAY, IF & INSERT

2002-06-23 Thread Jesper Brunholm
César aracena wrote: > The catch would be to make PHP to auto assign the relatives "level" by > knowing it has to start from $i=1 and loop $i++ until no other kid is > inserted. Now that I write it, it seems I could use a for loop, but what > should be the structure of it using the $name <> 0 you

RE: [PHP] Re: ARRAY, IF & INSERT

2002-06-21 Thread César Aracena
L PROTECTED]] > Sent: Friday, June 21, 2002 6:56 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] Re: ARRAY, IF & INSERT > > (i am new to these groups, but shouldn't there be a follow-up-to on a > X-post?) > > César aracena wrote: > > I have th

[PHP] Re: ARRAY, IF & INSERT

2002-06-21 Thread Jesper Brunholm
(i am new to these groups, but shouldn't there be a follow-up-to on a X-post?) César aracena wrote: > I have this form in which one Administrator can insert new members and > after that, in another page, a form where he/she can insert the new > member’s sons & daughters. I want to display a tabl