I am creating a system where i input how much paper each of my photocopiers have used per user.
I have created the database and tables which all seems to work fine. I have a simple drop down menu where i select the photocopier i am inputting the count from and user and which photocopier as we have 4. This then writes to a table with all that data including date and month so i can report for each month in question.
My issue is when displaying the data it outputs each line and as i have multiple copiers i will write a line for each entry that i have made. Can i have this display per user and copier all on one line instead of a line per entry.
I this just a simple case of changing my sql query or do i need to change the way i am writing the data to the database ?
I hope below helps.
I have
User 1 FirstName1 LastName1 CopierMachine1 count1
User 1 FirstName1 LastName1 CopierMachine2 count2
User 2 FirstName2 LastName2 CoperMachine1 count1
User 2 FirstName2 LastName2 CopierMachine2 count2
I would like
User 1 Firstname Lastname CopierMachine1 Count1 CopierMAchine2 Count2
User 2 Firstname Lastname CopierMachine2 Count1 CoperMAchine2 Count2