File manager - Edit - /home/autoph/public_html/data03252025consolidation/app/auto_txt_blast/button_status.php
Back
<?php include_once("../../cfg/db.php"); $type = $db->escape($_POST['type']); $filter_date = $db->escape($_POST['filter_date']);; //counting purpose if($type == 1){ // birthday celebrant $fetch_today = $db->sql_query("SELECT NOW() AS today"); $current_date = ""; foreach($fetch_today AS $data){ $current_date = substr($data['today'], 0, 10); } $query_pending = "SELECT COUNT(*) FROM `text_blast_birthday_record` WHERE `date` = '$current_date' AND `status` = -1"; //pending if($query_pending > 0){ $arr['pending'] = 0; //set to disabled } else { $arr['pending'] = 1; //set to enabled } // echo $query_pending; return; echo json_encode($arr); } else if($type == 2){ // insurance expiration } else if($type == 3){ // newly import $query_pending = "SELECT COUNT(*) FROM `text_blast_new_import_record` WHERE DATE_FORMAT(date_uploaded, '%Y-%m-%d') = '$filter_date' AND `status` = -1"; //pending if($query_pending > 0){ $arr['pending'] = 0; //set to disabled } else { $arr['pending'] = 1; //set to enabled } // echo $query_pending; return; echo json_encode($arr); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings