| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
incrementing value in section loop | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
I have the following code which loops through and creates an array of the sections. The problem with it is I am using the serviceid to define the array number. So instead of being event_services[0], event_services[1], event_services[2]. It is outputting like event_services[12], event_services[17], event_services[32].
How can I get it to output event_services[0], event_services[1], event_services[2]? Code:
If I write it like the following it seems like list_num is undefined, only ont he "name part though, the "value" part works great. Code:
__________________
Gibberish [Unix] X-Cart 4.0.12 |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. |
|||||||||
|
#3
|
|||||||
|
|||||||
|
Perfect. Thanks a lot Shan.
__________________
Gibberish [Unix] X-Cart 4.0.12 |
|||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||