Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to limit and display only last 10 raw

adamrifauadamrifau Never LandMember Posts: 1

$name = $userdata[1];
$attendance = $zk->getAttendance();
sleep(1);
while(list($idx, $attendancedata ) = each($attendance)):
if ( $attendancedata[2] == 1 )
$status = 'Check Out';
else
$status = 'Check In';
?>


<?php echo $idx ?>
<?php echo $attendancedata[0] ?>
<?php echo $name ?>
<?php echo $attendancedata[1] ?>
<?php echo $status ?>
<?php echo date( "d-m-Y", strtotime( $attendancedata[3] ) ) ?>
<?php echo date( "H:i:s", strtotime( $attendancedata[3] ) ) ?>
Tagged:
Sign In or Register to comment.