已打开/已完成的票超过总票的进度条

时间:2018-06-25 19:13:25

标签: php mysql sql

progrss栏的前端看起来不错,但是后端却有问题。我的问题是我无法获得正确数量的门票,尤其是总门票。 数据库中打开的票证的值应为0

local-name()
数据库中

分配的票证的值应为1

{

"reactions": [

{

"count": 1,

"me": false,

"emoji": {

"id": null,

"name": ""

}

}

],

"attachments": [],

"tts": false,

"embeds": [],

"timestamp": "2017-07-11T17:27:07.299000+00:00",

"mention_everyone": false,

"id": "334385199974967042",

"pinned": false,

"edited_timestamp": null,

"author": {

"username": "Mason",

"discriminator": "9999",

"id": "53908099506183680",

"avatar": "a_bab14f271d565501444b2ca3be944b25"

},

"mention_roles": [],

"content": "Supa Hot",

"channel_id": "290926798999357250",

"mentions": [],

"type": 0

}

但是我无法获得总票数,下面的代码是某个地点的总票数,但是我正在寻找一个人的总票数。

$row_count2 =  sqlsrv_query($NEI,"
                SELECT Count(Tickets.ID) AS Open_Tickets 
                FROM   (
                            (SELECT ID FROM TicketO  WHERE TicketO.Assigned = '0')                                      
                        ) AS Tickets
            ;",array($_GET['ID']));
    echo $r ? number_format(sqlsrv_fetch_array($row_count2)['Open_Tickets']) : 0;
           $open_tickets = number_format(sqlsrv_fetch_array($row_count2)['Open_Tickets']);

0 个答案:

没有答案