Javascript倒数与数据库输入

时间:2017-04-16 21:56:27

标签: javascript php jquery

sset($_POST["confirm"])) {
 $check="select * from tbl_donate where receiverId='$username' and status = 'created'";
    $exc=mysqli_query($conn,$check);
    $match=mysqli_fetch_array($exc);

    $cElapseTime=$match['cElapseTime'];
    $timeCreated=$match['timeCreated'];
    $receiverId=$match['receiverId'];
    $senderId=$match['senderId'];
    $pop = $match['proof'];
    $projectId = $match['projectId'];
    $actlAmt = $match['amtRec'];
    //$errMsg = $projectId;
    $now=date("Y-m-d h:i:s");
    $t1 = strtotime($timeCreated);
    $t2 = strtotime($cElapseTime);
    $t3 = strtotime($now);
   $diff = $t2 - $t3;
   $hours = gmdate("H:i:s", $diff);

我希望将此作为倒计时传递给javascript,并且在倒计时为零之后,它应自动停止倒计时并重新加载页面并更新数据库中的列。

我需要帮助

0 个答案:

没有答案