Re: [PHP] HELP - Clean and simple

2006-05-22 Thread chris smith
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not

RE: [PHP] HELP - Clean and simple

2006-05-22 Thread Jay Blanchard
[snip] I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field ($row[0]) 2. If it's not decleard I declear it and assign it's name by

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Rabin Vincent
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: :-) Sorry! I've been digging with this for a while now so I don't think I have the best code left. But this is what I have for the moment: while($row=mysql_fetch_array($result)) { if (!$$row[0]) { $$row[0] = array();

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Scott Hurring
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote: while($row=mysql_fetch_array($result)) { if (!$$row[0]) { $$row[0] = array(); $$row[0][$row[2]] = $row[1]; } else { $$row[0][$row[2]] = $row[1]; } } IMO,

Re: [PHP] HELP - Clean and simple

2006-05-22 Thread Richard Lynch
http://php.net/isset On Mon, May 22, 2006 8:45 am, Jonas Rosling wrote: I don't know if I'm explaining things in a difficult way or not. But I'm gonna try to explaine what I want very clean and simple. 1. I wan't to check if an array is decleard or not, refering to a value in a row/field