I have a mysql table called jobs
jobs.fields are jobs.id, jobs.name, jobs.startdate and jobs.enddate.
I need to select all jobs that are between startdate and enddate - defined by two parameters.
From the returned records I want to plot each job in a grid - like a spreadsheet where row is jobs.id and jobs.name and columns represent all dates for all the jobs in the recordset.
I suspect each row in array could be built with -1 for each column(i.e. date) that a job exists for, else 0.
For presentation, I propose to load the records into a grid with jobs.id and jobs,name and a colour where date columns are -1
The grid will obviously be dynamically set by the maximum number of columns, probably more than 30 and less than 365 days - so user will have to scroll horizontally.
Thoughts and comments please.