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,并且在倒计时为零之后,它应自动停止倒计时并重新加载页面并更新数据库中的列。
我需要帮助