Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2010, 11:37 AM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Interesting Date script

Hi

I'm needing help with an asp script

I want to loop through a number of records all with a date column. and output the following result organised accoding to the date

2010
January
February
March
etc...

2009
January
February
March
etc...


and when i click on the month is will display a list of records that fall under that month and year.


any advice would be appreciated.

thanks in advance
Ryan
 
Old May 5th, 2010, 06:34 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

I dont understnad your quesiton, im not sure anybody would with the limited information you posted. Help others help yourself...
__________________
Wind is your friend
Matt
 
Old May 6th, 2010, 01:12 AM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wow ok i thought it was pretty well explained....anyway will try again.

Lets say i have 1500 records in a database, each record has a date. dates are obviously different.

I need to sort/Group those 1500 records by year and then month. So using the date i need to check the year and month of each record.

but I want to sort them by year and date. The HTML will out put as follows:

2010
January
February
March
etc...

2009
January
February
March
etc...

so if there is no record out of the 1500 records that has a date that falls in February 2009 then the February will not display. Same for the year, if no records out of the 1500 have a year of 2010 then 2010 and its months do not display.

when you click on one of the months "March under 2009 for example" it will display the records whose date falls within that year and month.

hope that makes more sence.

Last edited by Ryanvdm; May 6th, 2010 at 01:15 AM..
 
Old May 6th, 2010, 01:54 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

no you wernt...

What do you want the query to get the record set, the code to loop through the recordset or someone to write it all.......

You should indicate which part you are stuck on, show some code, have you attempted this at least?
__________________
Wind is your friend
Matt
 
Old May 6th, 2010, 02:04 AM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

lol mate can feel your irritation with us noobs :)

I just need the loop part

Last edited by Ryanvdm; May 6th, 2010 at 02:06 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
An interesting question iPagan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 February 13th, 2007 05:31 PM
Interesting Problem prasanta2expert ASP.NET 1.0 and 1.1 Basics 1 October 16th, 2006 08:14 PM
Add Date in Catalog Backup Script sagato Need help with your homework? 0 September 19th, 2006 04:25 PM
How shall I make the game interesting? flash2004 Need help with your homework? 0 June 11th, 2006 10:17 PM
Interesting Error kanchan_b XSLT 1 February 1st, 2006 03:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.