Hello. I have a table called hours set up like this:
hoursID (Unique, auto)-username-datetime_in-datetime_out
Now I am looking for all the times a user logged in between two certain dates (which I input from the user.
I have the functionality of a program set up but my queries return the incorrect values (well values different from what I intended :-))
Anyway: here are the queries I am using to find the minimum ID of a user at a certain date. The
select min(hoursid) from hours where datetime_in regexp '[20041201][0-9]*'
and username='klatt'
The values have been manually put in there to take the place of the variables as to allow testing through the mysql console.
I think the probelm is the regexp part :-/
You guys have been a great help too me.
TIA,
Frank