I have this condition to display on lcd display in arduino. How do i send these statements to arduino and display on lcd display 16x2
Please help about it
public function getRFIDAttendanceApi(){
$rfid_uid = trim($_REQUEST['uid']);
$sql = "select count(*)as tot from tbl_users where rfid_uid='$rfid_uid'";
$data = $this->getData($sql);
if(count($data)>0 && $data[0]['tot']>0){
$sql = "insert into tbl_attendance set rfid_uid='$rfid_uid'";
$flag = $this->conn->query($sql);
if($flag){
echo "Attendance marked successfully!";
die;
}else{
echo "Sorry! Something unexpected happened";
die;
}
}else{
echo "invalid access";die;
}
}