Re: Array help
| From: | Robb Kerr | Date: | Fri, 23 Jul 2004 22:11:27 +0000 |
| Subject: | Re: Array help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191700@lists.php.net to get a copy of this message | ||
On Fri, 23 Jul 2004 14:21:42 -0700 (PDT), Matthew Sims wrote:
> imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" =>
> "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif");
You got it...
imgBkgrnd = array("1"=> "bkgrnd-default.gif", "2" =>
"bkgrnd-positive.gif",
"3" => "bkgrnd-negative.gif");
imgNeeded = table['field'];
imgName = ???
Now, how do I get the image name associated with the key number obtained
from my table out of the array and into the variable so that I can use it
later in the HTML?
Thanx, Robb
--
Robb Kerr
Digital IGUANA