dnaextrim / php_zklib

Attendance Machine Library for PHP with a connection to the network using the UDP protocol and port 4370
http://dnaextrim.github.io/php_zklib/
GNU General Public License v2.0
161 stars 134 forks source link

zk->getAttendance() not returning any result #43

Open iancuyugan opened 6 years ago

iancuyugan commented 6 years ago

Hello.

We're trying to use your library to work with our F22 device but it's not returning any attendance logs.

It will load for a few minutes where it will display the device data and user data but when it finishes loading it just shows an empty attendance data table.

Do you have an idea why its not generating the attendance data?

nbbaataraa commented 6 years ago

try this. <?php $attendance = $zk->getAttendance(); foreach($attendance as $key=>$value) { $uid = $value[0]; $id = $value[1]; $state = $value[2]; $date = $value[3]; $time = $value[4]; {

?>