Hi folks... im with a hugh question...
Here is the scenario.
Im developing a timeclock system, i have these tables:
-punch (id_punch,date)
-in1 (id_in1,time,id_punch,...)
-in2 (id_in2,time,id_punch,...)
.
-in6 (id_in6,time,id_punch,...)
-out1 (id_out1,time,id_punch,...)
-out2 (id_out2,time,id_punch,...)
.
-out6 (id_out6,time,id_punch,...)
My question is, how i can with only one query in PHP to get all values from in and out table, from a list of id_punch values, for exemple:
Get all punchs of september. or Get all punchs of july to dezember,
I mean... from a list of id_punch between two dates, get all the results from the in, out table.
The only way i think is to do a query with each id_punch variable, but in a month its about 20-25 queries... to much dont? Tkz Roberto