Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-21-2005, 02:42 PM   #1 (permalink)
 
Junior Techie

Join Date: Mar 2004

Posts: 75

SureShot

Default ASP Dynamic Links HELP!!

Hey guys i am creating a depth charts page for a fantasy football website. The information is pulling from a database in mysql. I have hte abbreviations pulling to the site in link format but i want to know how to make them when clicked display the other information that goes with their abbreviation .. for example when you click ARZ it shows you Arizona Cardinals and hte players on that team right underneath it. Here is the code i have so far which displays the abbreviations in links.

<%
Set conn=Server.CreateObject("ADODB.Connection")
conn.Open "Provider=MSDASQL; DRIVER=MySQL ODBC 3.51 Driver; SERVER=localhost; DATABASE=ffb; UID=****; PASSWORD=****; OPTION=3"
MySQL = "Select nfl_team_id,nfl_team_abbreviation,nfl_team_city,nf l_team_name from tbl_site_ff_nfl_team"
Set rs = conn.Execute(MySQL)
%>
<div class="textdivision">
<div style="margin-top:10px; margin-left:10px;">
<% while not rs.EOF
Response.Write("<a href=depthcharts.asp?teamid=" & rs.Fields(0) & ">" & rs.Fields(1).Value & "</a>")
Response.Write(" " & "|" & " ")
rs.MoveNext
wend
%>


<%
rs.close
conn.close
%>
</div>
</div>



thanks, eric
__________________
Aspire X-Alien Case(Red)
6 Green LED Fans
Aspire 420W power Supply
AMD Athlon XP Barton 2500+
Asus A7N8X-E Deluxe Mobo
Western Digital 160GB HD (SATA)
Samsung DVD-Rom
Lite-on DVD/RW
Kingmax 512MB DDR4300 PC3500
Ati Radeon 9600XT 128MB
SureShot is offline  
 
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On