View Single Post
Old 01-18-2013, 11:51 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,056 Times in 4,025 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
You know, there really was no reason to have the Y and W columns in that table.

MySQL could easily derive both of those from the DT field.

But oh well, since you have them, let's use them.

Anyway, the point you are completely missing is *WHAT* you want to show for each week.

That is, do you want to show the detailed payroll (every paycheck for every person) for each week? Or so you want to show the total payroll for the week? Or what?

No, you CERTAINLY should *NOT* do a FOR loop getting one week at a time. Yuck.

But you need to tell us what data you want to display for each week.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
Bobafart (01-19-2013)