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
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\
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
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
4 matches
Mail list logo