Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-13-2005, 12:50 AM   PM User | #1
Travo
New to the CF scene

 
Join Date: Jan 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Travo is an unknown quantity at this point
Small Thing

i am making a while statement that is <% while (num < 6) %>
but i need to know how to get the feild out of the database that the while state ment is currently on.
There are feilds Card1, Card2, Card3, ect all the way to 10 in the database but i only need the first 6.
is there anyway i can go <%=rs("Card1")%> but instead of the 1 in Card1 can it get the value of num that the while state ment is currently on?
i tried to guess something like <%=rs("Card<%=num%>")%> but i cannot figure it out.

thx
Travo is offline   Reply With Quote
Old 01-13-2005, 02:03 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
<%=rs("Card" & num)%>
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-13-2005, 04:34 AM   PM User | #3
Travo
New to the CF scene

 
Join Date: Jan 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Travo is an unknown quantity at this point
thx a ton glenn
Travo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:31 PM.


Advertisement
Log in to turn off these ads.