Hi guys:
I have my DB set something like below:
ItemID |Itemname |Cmdate |Cmday
_______________________________
A11 | A11name |06/21/2004|Monday
A12 | A12name |06/21/2004|Monday
A13 | A13name |06/21/2004|Monday
A21 | A21name |06/22/2004|Tuesday
A22 | A22name |06/22/2004|Tuesday
A31 | A31name |06/23/2004|Wednesday
and so on....
I want to query this DB and fetch this week's results and display it in the dynamic table( on my ASP page) like below
Sunday|Monday|Tuesday|Wednesday|Thrusday|Friday|Saturday
__________________________________________________
A0name|A11name |A21name|A31name| .... and so on
|Al12name|A22name|
|Al13name|
Ok problems are ---
Problem 1: How do i do my select query to retrieve this week's data.....Starting from Sunday till Saturday for any week i want to see the same data...only on next Sunday data in the table should be updated with the new data...
Problem 2: How do i display this table dynamically as the items on one day is different from items on the other day...Also how i can get my recordset data displayed separately based on the name of the table column...
Any Suggestion..
Thanks in advance
-VJ
I have my DB set something like below:
ItemID |Itemname |Cmdate |Cmday
_______________________________
A11 | A11name |06/21/2004|Monday
A12 | A12name |06/21/2004|Monday
A13 | A13name |06/21/2004|Monday
A21 | A21name |06/22/2004|Tuesday
A22 | A22name |06/22/2004|Tuesday
A31 | A31name |06/23/2004|Wednesday
and so on....
I want to query this DB and fetch this week's results and display it in the dynamic table( on my ASP page) like below
Sunday|Monday|Tuesday|Wednesday|Thrusday|Friday|Saturday
__________________________________________________
A0name|A11name |A21name|A31name| .... and so on
|Al12name|A22name|
|Al13name|
Ok problems are ---
Problem 1: How do i do my select query to retrieve this week's data.....Starting from Sunday till Saturday for any week i want to see the same data...only on next Sunday data in the table should be updated with the new data...
Problem 2: How do i display this table dynamically as the items on one day is different from items on the other day...Also how i can get my recordset data displayed separately based on the name of the table column...
Any Suggestion..
Thanks in advance
-VJ