When I try to display $time_4
and $time_5
, they have no value, they do not display at all nor appear on my screen. I am querying from the right table and the parameters for the query I inputted on $time_1 is all correct and when I run it into my db manually, it gives proper result.
$time_1 = "SELECT * FROM ".ATD_TBL." WHERE nik = '$nik' AND Date = '$date'";
$time_2 = mysqli_query($conn,$time_1);
$time_3 = mysqli_fetch_array($time_2, MYSQLI_ASSOC);
$time_4 = $time_3['clockin'];
$time_5 = $time_3['date'];