File manager - Edit - /home/autoph/public_html/data03252025consolidation/app/auto_txt_blast/resend.php
Back
<?php include_once("../../cfg/db.php"); $type = $db->escape($_POST['type']); $start_date = $db->escape($_POST['start_date']); $end_date = $db->escape($_POST['end_date']); $return_arr = array(); //counting purpose if($type == 1){ // birthday celebrant } else if($type == 2){ // insurance expiration } else if($type == 3){ // thank you $count = $db->select("SELECT COUNT(1) FROM `text_blast_new_import_record` WHERE (DATE_FORMAT(`date_uploaded`, '%Y-%m-%d') BETWEEN '$start_date' AND '$end_date') AND `status` != '0' AND `status` != '-1' AND `status` != '1'"); if($count > 0) { $db->sql_query_num_inserted("UPDATE `text_blast_new_import_record` SET `status` = '-1' WHERE (DATE_FORMAT(`date_uploaded`, '%Y-%m-%d') BETWEEN '$start_date' AND '$end_date') AND `status` != '0' AND `status` != '-1' AND `status` != '1'"); $return_arr['status'] = 1; $return_arr['message'] = "Undelivered messages are queued to resend"; } else { $return_arr['status'] = 0; $return_arr['message'] = "There are no undelivered messages within the provided date range"; } echo json_encode($return_arr); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings