write out data from array
| From: | Jiri Nemec | Date: | Tue, 25 Mar 2003 07:59:21 +0000 |
| Subject: | write out data from array | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8879@lists.php.net to get a copy of this message | ||
Hello,
i have got problem with writeout in template items from array:
there is an array something like it:
datas:
array(3) {
[17]=>
string(1) "5"
[36]=>
string(1) "5"
[136]=>
string(2) "10"
}
this works in clean PHP:
<?php echo $datas[$id_item]; ?>
but I don't know how to type out the value from an array in teplate.
in template I by section tag write out all items from one category, I
have got item-ID and I need to writeout value of item in shoppinf cart.
thank you for any help....
jiri nemec, ICQ: 114651500
www.menea.cz - www stranky a aplikace