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

2001-12-04 Thread Brian V Bonini
$model => $link) { > > $modelString .= " CLASS=\"menu\">$model"; > > } > > } > > print($makeString . "\n"); > > print($modelString . "\n"); > > > > (I don't get what you're try

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

2001-12-04 Thread Steve Cayford
x27;Huez BuenosAries Tourmalet > Moots VaMoots > as it should... > > But, I need it to produce: > Trek LeMond Moots > Trek 5200 Zurich Chambery Alpe d'Huez BuenosAries Tourmalet VaMoots > > And I need to get the value of $sub_val in the nested "whi

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

2001-12-04 Thread Brian V Bonini
>$sub_val\n"; > > > } > } > } > > alternatively, if you know specifically what you want you could > do this ... > > if ($cat == 'bikes' && $sub_cat != 'Road') { > while (list($val, $key)=each($bikes[$sub_cat][&

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

2001-11-30 Thread Jim Musil
gt; -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

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

2001-11-30 Thread Hank Marquardt
Well, it's saying that because $key is an array;) For example, "Mountain" is a $sub_cat: > "Mountain" => array( > "Trek" => array( > "Fuel 100" => "mountain.php?brand=tfuel90", > "Fuel 90" => "mountain.php?brand=schhg" >

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

2001-11-30 Thread Brian V Bonini
> Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Stuck on array, need a little help. > > > Your script is working like you are asking it to ... > > > Change ... > > while (list($val, $key)=each($bikes[$sub_cat])) { > > To ... > > while (list($k

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 th