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

getAttendance() not retrieve from machine #55

Open nbbaataraa opened 5 years ago

nbbaataraa commented 5 years ago

Hello. I have iFace402. and i'm using your lib. i success to connect my device and retrieve users. but i can't retrieve Attendance. when i add $attendance = $zk->getAttendande(); foreach($$attendance as $key=>$value) { $uid = $value[0]; $id = $value[1]; $state = $value[2]; $time = $value[3]; echo $uid ; echo $id; echo $state; echo $time; }

it's showing now value and no users. how to fix that. And it's supporting PHP 7 ?. thanks.

kamshory commented 5 years ago

make sure that no double dollar

$attendance = $zk->getAttendande();
foreach($attendance as $key=>$value)
{
$uid = $value[0];
$id = $value[1];
$state = $value[2];
$time = $value[3];
echo $uid ;
echo $id;
echo $state;
echo $time;
}

instead of

$attendance = $zk->getAttendande();
foreach($$attendance as $key=>$value)
{
$uid = $value[0];
$id = $value[1];
$state = $value[2];
$time = $value[3];
echo $uid ;
echo $id;
echo $state;
echo $time;
}
nbbaataraa commented 5 years ago

thanks to replay. i already try this. but no luck.

duccomcoltd commented 5 years ago

getAttendance() cannot get data from machine Ronald Jack x938-C Please help me, I have remote connection information to the machine Ronald Jack x938-C zklibrary

techplusintl commented 5 years ago

Hello. Did you solve the problem? I have got same problem now.

shivaoedit0310 commented 5 years ago

@duccomcoltd and @techplusintl I have the same issue with getAttendance(). I'm not getting data. However with getUser(), it's working perfectly. Did you manage to get a solution?

ameik297 commented 3 years ago

hello,

does it work on WL30?

trenzasoft commented 2 years ago

@duccomcoltd and @techplusintl I have the same issue with getAttendance(). I'm not getting data. However with getUser(), it's working perfectly. Did you manage to get a solution?

I am having the same issue? Did you manage to make it working?

zaid2255 commented 1 year ago

image

I'm getting Data User but not getting attendance can anyone help me