<?php require_once '../../wcore/core.php'; iank(); if (isAjax() == false){ go('/'); } $count_tickets = mysqli_num_rows(mysqli_query($mysqli,"SELECT * FROM `tickets_list` WHERE `status` = 2 AND `uid` = '$ank->id'")); $json = json_encode([ 'count' => $count_tickets, 'isNew' => ($count_tickets == 0?false:true), ]); echo $json; ?>