Hi all,
I have table in my DB with following columns
ID,emp_id,project_id,empfname,emplname,projname,workdate,worktype,timespent.
Following is the sample data in my table
| 1 |
15 |
6 |
praveen |
katta |
project1 |
5/12/2008 |
Coding |
1 |
| 2 |
15 |
6 |
praveen |
katta |
project2 |
5/12/2008 |
Modifications |
3 |
| 11 |
15 |
8 |
praveen |
katta |
project3 |
5/12/2008 |
Coding |
0.5 |
| 12 |
15 |
7 |
praveen |
katta |
project4 |
5/12/2008 |
Testing |
1 |
| 13 |
15 |
9 |
praveen |
katta |
project5 |
5/12/2008 |
Modifications |
2 |
| 14 |
15 |
6 |
praveen |
katta |
project6 |
5/12/2008 |
Coding |
1 |
as i mentioned the columns, data is in the same order
I am allowing the user to select from date...based on this i set the end date ie.,frmdate + 6days... no problem
now i need to pull the report for a week and display to the user in the following format
WorkType | 5/12/2008 | 5/13/2008 | 5/14/2008 | 5/15/2008 | 5/16/2008 | 5/17/2008 | 5/18/2008 | Hours
Coding | totalhrs on 5/12/2008 day for coding | totalhrs on 5/13/2008 day for coding |...................................................................................| total hours for the week
I need to display in the above format...can any one help me out ..plzzzzzzzz....