Welcome Guest, Not a member yet? Register   Sign In
how to use 2 loops in 1 template ..
#1

[eluser]Mr.SoOoMa[/eluser]
Hello there ,

i'm working on a cars php script ..

there are 2 tables .. types table and models table ..

each type has more than one model, my problem is how to show every type and its models under it ..

i think i have to use a loop to show types and loop to show each type's models .. but how can i do this ?

thanks a lot
#2

[eluser]Mr.SoOoMa[/eluser]
BTW .. i'm using smarty template engine .. so i use (foreach) in my templates ..




Theme © iAndrew 2016 - Forum software by © MyBB