Hello
I want to create attendance sheet on which date are printed as column and name of student/staff as column
database is as shown
CREATE TABLE IF NOT EXISTS `attendance` (
`date` varchar(500) DEFAULT NULL,
`time` varchar(1000) DEFAULT NULL,
`staffname` varchar(1000) DEFAULT NULL,
`id` int(11) DEFAULT NULL,
`role` varchar(1000) NOT NULL,
`status` varchar(1) DEFAULT NULL
)
`date` varchar(500) DEFAULT NULL,
`time` varchar(1000) DEFAULT NULL,
`staffname` varchar(1000) DEFAULT NULL,
`id` int(11) DEFAULT NULL,
`role` varchar(1000) NOT NULL,
`status` varchar(1) DEFAULT NULL
)
but when I querying the table repeating the names of student and staff which not gives me report as expected here I attaching code also
| Date | |
|---|---|
please guide what do to create a report as expected
| Name/Date | 12-11-2013 | 13-11-2013 | 16-11-2013 |
| Student name1 | P | A | A |
| Staffname 1 | P | P | A |
awaiting valuable reply
Ritika MishraPosted Mar 5, 2016, 2:06 AM