Re: [PHP] irrational behavior SOLVED

2009-05-12 Thread PJ
Jan G.B. wrote: > 2009/5/12 PJ : > >> Could somebody please explain this? >> When the line - sort($category) is commented out, the output returns >> Notice: Undefined offset: in the line "36" for all the repeats (29 in >> this case) >> > > Sure thing if you consider this: > > > > >> The

Re: [PHP] irrational behavior

2009-05-12 Thread Robert Stankiewicz
Maybe, because of this ? $category[$row['name']] = $row; . $cat = $category[$ii]['name']; //===this is line 36== best regards Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] irrational behavior

2009-05-12 Thread Jan G.B.
2009/5/12 PJ : > Could somebody please explain this? > When the line - sort($category) is commented out, the output returns > Notice: Undefined offset: in the line "36" for all the repeats (29 in > this case) Sure thing if you consider this: > The code below: > $SQL = "SELECT name >FRO

Re: [PHP] irrational behavior

2009-05-12 Thread PJ
Robert Stankiewicz wrote: > Maybe, because of this ? >> $category[$row['name']] = $row; >> > >> $cat = $category[$ii]['name']; //===this is line >> 36== >> > > best regards > Robert > I'm afraid you lose me completely. What does the sort($category) have to d

Re: [PHP] irrational behavior

2009-05-12 Thread Thodoris
Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line "36" for all the repeats (29 in this case) The code below: ", $cat, ""; $ii++; } $ii = $lastIndex; //echo $category[$ii]['category']; while ($

Re: [PHP] irrational behavior

2009-05-12 Thread Thodoris
Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line "36" for all the repeats (29 in this case) The code below: ", $cat, ""; $ii++; } $ii = $lastIndex; //echo $category[$ii]['category']; while ($ii