kamshory / ZKLibrary

ZKLibrary is PHP library for reading and writing data to attendance device using UDP protocol. This library useful to comunicate between web server and attendance device directly without addition program. This library is implemented in the form of class. So that you can create an object and use it functions.
GNU General Public License v2.0
198 stars 179 forks source link

Getting attendance of a specific user or specific date. #9

Open RahamSher opened 6 years ago

RahamSher commented 6 years ago

Dear all,I want to get attendance of a specific user or a specific date.How it will be possible to get it.Please guide if any have the key.

kamshory commented 6 years ago

I am sorry. You can not. You must read all attendance data and save it to your database. Then you can select data from your database as you want.

RahamSher commented 6 years ago

@kamshory Thank you sir. Sir please guide me that how I differentiate check in check out of a user in my attendance.

kamshory commented 6 years ago

Unfortunately, ZK not provide the status (check in or check out). You should use your own algorithm to get the status by the attendance time. For this purpose, you need to save the attendance into database. For example: The first time attendance of a time frame considered as check in and the last time attendance of a time frame considered as check out.

RahamSher commented 6 years ago

Hats off to @kamshory.Thank you sir...

rajucs commented 5 years ago

@RahamSher did you complete this task? Suggest me please. How can i implement this. I also need check in and checkout time from that maching/device.

malikwaqasmustafa commented 2 years ago

That is possible if one uses c# SDK of ZKTeco in their DLL this method exists & works fine i've tested that, but not sure how to implement that in PHP

[DispId(500)]
public virtual bool ReadTimeGLogData(int dwMachineNumber, string sTime, string eTime);
hkpavel commented 1 year ago

That is possible if one uses c# SDK of ZKTeco in their DLL this method exists & works fine i've tested that, but not sure how to implement that in PHP

[DispId(500)]
public virtual bool ReadTimeGLogData(int dwMachineNumber, string sTime, string eTime);

what will be date format for string sTime and string eTime, can you pls give me a real working example of this two parameter?