It's similar to my other post...
I have a table like this
//STARTING_DATE//DAY1//DAY2//DAY3//DAY4...//DAY7
////////////////////////////////////////////////
//2005-01-02 // 0 // 16 // ...
//2005-01-09 // 0 // 18 // ...
//2005-01-16 // 0 // 18 // ...
//2005-01-23 // 0 // 18 // ...
//2005-01-30 // 0 // 16 // ...
/////////////////////////////////////////////////
Where day 1 to day 7 are the days worked (DAY>0) or not(0) worked in the week for the month. I just cannot figure out how I could count the number of days worked in the month depending on the date entered by the user.
Thank you =D
I have a table like this
//STARTING_DATE//DAY1//DAY2//DAY3//DAY4...//DAY7
////////////////////////////////////////////////
//2005-01-02 // 0 // 16 // ...
//2005-01-09 // 0 // 18 // ...
//2005-01-16 // 0 // 18 // ...
//2005-01-23 // 0 // 18 // ...
//2005-01-30 // 0 // 16 // ...
/////////////////////////////////////////////////
Where day 1 to day 7 are the days worked (DAY>0) or not(0) worked in the week for the month. I just cannot figure out how I could count the number of days worked in the month depending on the date entered by the user.
Thank you =D