View Single Post
  #2  
Old 06-14-2004, 04:39 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Array is $test

Code:
{section name=test_num loop=$test} {if $test[test_num].param eq $my_parm} $test[test_num].param {/if} {/section}

That code will only print the row in the loop that matches your $my_param.

not sure if thats what your looking for.

the loop would be made up from a php file / mysql statement and the {if} statement will pick out the row you want.

If you wanted to minimise the amount of rows in the array you would need to alter the sql statement
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote