1 2 3 4 5 6 7 8 9 10 11 12 13
|
global $wpdb;
$yesterday = mktime(0, 0, 0, date("d")-1, date("m") , date("Y"));
$sql = "SELECT * FROM h_tickets_table WHERE DATE(t_contact_date) = yesterday ORDER BY t_contact_id";
$sql_where = " 1=1 ";
function ticket_interaction($getdata){
while ($query= $wpdb->get_results($sql))
{
$array[9] = htmlspecialchars($query['t_id']) . htmlspecialchars($query['t_ticket_number']) . htmlspecialchars($query['t_fk_user_id']) . htmlspecialchars($query['t_contact_date']). htmlspecialchars($query['t_status']) . htmlspecialchars($query['t_priority']) . htmlspecialchars($query['t_contact_type']) . htmlspecialchars($query['t_category_ids']) . htmlspecialchars($query['t_information']);
}
} |
Partager