In my database I have a checkin field and a checkout field and they are both date time and allowed null. Meaning when somebody logs in the date/time goes into that fiel and the logout field is null. Then the next record for that person should have a null for checkin and the date/time for the checkout. This is being used to check workers into the payroll system.
Basically the table goes:
ID-username-login-logout
I know this is kind of sloppy database design, but this needs to get done quickly and we won't be having an insanely amount of records or anything like that.
Anyway, I have a form asking for the dates the user wants to start looking for hours and the date the user wants to stop looking for hours and for which worker the user wants to check hours for.
So that information gets passed to my next pageg which should contain the queries neccessary to view that specific information and perform a few calculations on them.
I have to match up the checkins and checkouts for one day and then find the checkins and checkouts for the next days from where the user said to start looking and until where the user said to stop looking.
Sorry that was so long but I wanted to describe the problem as best as possible.
TIA,
Frank
Whew...