ZKLibrary
ZKLibrary copied to clipboard
Getting attendance of a specific user or specific date.
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.
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.
@kamshory Thank you sir. Sir please guide me that how I differentiate check in check out of a user in my attendance.
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.
Hats off to @kamshory.Thank you sir...
@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.
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);
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?