ASP

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentASP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old January 10th, 2008, 05:31 AM
steveh75 steveh75 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 6 steveh75 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 40 m 30 sec
Reputation Power: 0
Grouping data by date

I have some team fixtures and results in a database and am trying to group them by date.

The code I'm using is as follows:

sql = "SELECT Date, HomeTeam, HomeScore, AwayTeam, AwayScore FROM tblFixtures ORDER BY Date DESC"

set result = myconn.execute(sql)

if not result.EOF then

response.write("<table border=0><tr bgolor=#006633><th><div align=left><font color=#FFFF00 size=2 face=frutigerLight>Fixtures & Results<tr><th>")
while not result.EOF
response.write("<tr><td span=4><div align=left><font size=2 face=frutigerLight>" & result("Date"))

Do
response.write("<tr><td><div align=left><font size=2 face=frutigerLight>" & result("HomeTeam"))

response.write("<td><div align=left><font color=#006633 size=2 face=frutigerLight><strong>" & result("HomeScore"))

response.write("<td><div align=left><font color=#000000 size=2 face=frutigerLight>" & result("AwayTeam"))

response.write("<td><div align=left><font color=#000000 size=2 face=frutigerLight>" & result("AwayScore"))

result.movenext()
Loop Until result.EOF

result.movenext()
wend

response.write("</table>")
else
response.write("<p>No Entry for " & request("place"))
end if

I get most of the data returned but ungrouped.

example result is here.

http://www.mellishrfc.co.uk/fixtures.asp

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentASP > Grouping data by date


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap