RE: [PHP] Stuck on array, need a little help.

2001-12-04 Thread Brian V Bonini
To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Stuck on array, need a little help. The script is still working right, you just need to nest another while loop into your current while loop. Like so ... if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key

[PHP] Stuck on array, need a little help.

2001-11-30 Thread Brian V Bonini
I'm stuck. $key returns Array how can I get at each level of this array? if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$key\

Re: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
Your script is working like you are asking it to ... Change ... while (list($val, $key)=each($bikes[$sub_cat])) { To ... while (list($key, $val)=each($bikes[$sub_cat])) { and it should work like you WANT it to ... I'm stuck. $key returns Array how can I get at each level of this

RE: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
it prints out Array and puts the item in the URL. Still the same problem. -Original Message- From: Jim Musil [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 4:54 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stuck on array, need a little help. Your