Array help.

From: Date: Fri, 22 Nov 2002 12:33:27 +0000
Subject: Array help.
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6503@lists.php.net to get a copy of this message
Hi, I am having bother with an array anyone got anyideas? Here is what I want to do: I have two arrays with the structure: {$club_array} 17 => East Fife 162 => Montrose FC 23 => Queens Park {$opposition_nav_array} 0 => 17 1 => 162 2 => 23 I want to run a section like this: {section name=nav loop=$opposition_nav_array} <option value="/main/s{$opposition_nav_array[nav]}.php"> {$club_array[$opposition_nav_array[nav]]} </option> {/section} This bit is causing me the problem: {$club_array[$opposition_nav_array[nav]]} $club_array has keys which equal the values of $opposition_nav_array and the above doesn't work. Any clues? Cheers John Wards

« previous php.smarty.general (#6503) next »