Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Loop Table

Quote Reply
Loop Table
Can a table be looped / conditional? Two tables in database sharing same template

My test example

<%if db=Dogs%>

Fur : <%Fur%><br>
Nails : <%Nails%><br>
Bark : <%Bark%><br>

<%else%>

Fur : <%Fur%><br>
Nails : <%Nails%><br>
Meow : <%Meow%><br>

<%endif%>
Quote Reply
Re: [gatman] Loop Table In reply to
Hi,

Definitely, just change your script a bit:

<%if db eq 'table_name'%>
....
<%else%>
....
<%endif%>

Cheers,

TheStone.

B.

Last edited by:

TheStone: Jan 7, 2002, 9:33 AM
Post deleted by jean In reply to
Quote Reply
Re: [TheStone] Loop Table In reply to
Thanks