Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 calendar grid

Author  Topic 

alxtech
Yak Posting Veteran

66 Posts

Posted - 2006-02-16 : 16:50:26
Hello Forum:
this is a calendar application event that displays all events from a database sql2000, depending on the department and date.
data is currently retrived and display propertly in a table as a list. example

Name: event title
date: event date
department: department name
description: description of the event

if more than one event it will display in consecutive order by date.

Name: event title
date: event date
department: department name
description: description of the event

Name: event title
date: event date
department: department name
description: description of the event

Problem:

I have to display these events in a calendar grid, each individual event inside its corresponding box(day of the month) for corresponding event.


khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-16 : 17:21:41
Can you post some sample data and the desire result

----------------------------------
'KH'

Time is always against us
Go to Top of Page

alxtech
Yak Posting Veteran

66 Posts

Posted - 2006-02-17 : 11:20:52
This is the datareader that hold the query results from the database.

set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = oConn
Recordset1.Source = "SELECT EVENT_Title,Category,Location,phone,CAST(EVENT_DATE AS DATE),sysdate,Description FROM Table_Name WHERE CAST(EVENT_DATE AS DATE)>trunc(sysdate,'MONTH') AND CAST(EVENT_DATE AS DATE)<LAST_DAY(sysdate) AND CATEGORY = 'one' ORDER BY CAST(EVENT_DATE AS DATE)"

Recordset1.Open()

I need show all record in its corresponding box(day of month)in a calendar grid like the following:

this is the desire result. in php i need it in asp
[url]http://calendar.codewalkers.com/calendar.php[/url]
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-02-20 : 01:47:33
This may give you an idea
http://sqlteam.com/forums/topic.asp?TOPIC_ID=44865

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -