Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/271.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php while循环中的hilios jQuery倒计时_Php_Jquery_Twitter Bootstrap_Css - Fatal编程技术网

php while循环中的hilios jQuery倒计时

php while循环中的hilios jQuery倒计时,php,jquery,twitter-bootstrap,css,Php,Jquery,Twitter Bootstrap,Css,我试图为每个成员显示hilios倒计时jquery插件,但为所有成员显示相同的倒计时。我从名为“到期日”的列的数据库中回显所有成员的到期日,“到期日”并没有回显所有成员的hilios倒计时 <?php $sql = "SELECT d.*, c.* from details as d, customer as c where d.customerId = c.id AND c.cmpId = '$idCompany'"; /*$sql = "SELECT * from cu

我试图为每个成员显示hilios倒计时jquery插件,但为所有成员显示相同的倒计时。我从名为“到期日”的列的数据库中回显所有成员的到期日,“到期日”并没有回显所有成员的hilios倒计时

<?php
    $sql = "SELECT d.*, c.* from details as d, customer as c where d.customerId = c.id AND c.cmpId = '$idCompany'";
    /*$sql = "SELECT * from customer where cmpId = '$idCompany' ";*/
    $result = mysqli_query($conn, $sql);
    while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
?>

 <tbody>
    <tr>

      <td>
        <?php echo $row['id'] ?>
      </td>
      <td>
        <?php echo '<img src="images/'.$row['image'].'"; width="100px"; hieght="100px">' ?>
        <a href="#" class="user-link"><?php echo $row['fname']." ".$row['lname']?></a>
        <span class="user-subhead">Member</span>
      </td>

      <td>
         <?php echo $row['time'] ?>
      </td>

      <td class="text-center countdown">
         <!-- Countdown (please check this countdown where the expiry for each member has to echo but same expiry is echoing for all members)-->
         <span class="label label-default getting-started"></span>
         <script type="text/javascript">
            $(".getting-started").each(function(){
              $('.getting-started').countdown('<?php echo $row["expiry"] ?> ' , function(time) {
                $(this).html(time.strftime('%w wk %d d %H h %M m %S s'));
                });
                })
                //})
        </script>
      </td>

      <td>
        <a href="<?php echo $row['customerName']; ?>" data-toggle="modal" data-target="#smsModal" class="mobile"><?php echo $row['mobile'] ?></a>
      </td>

      <td style="width: 20%;">
        <a style="float:left" data-toggle="modal" data-target="#memberInfo" href="<?php echo $row['id']; ?>" class="table-link clsMemberInfo view">
        <span class="fa-stack">
           <i class="fa fa-square fa-stack-2x"></i>
           <i class="fa fa-search-plus fa-stack-1x fa-inverse"></i>
        </span>
        </a>
        <a style="float:left" href="#" class="table-link" id="#save">
         <span class="fa-stack">
           <i class="fa fa-square fa-stack-2x"></i>
           <i class="fa fa-pencil fa-stack-1x fa-inverse"></i>
         </span>
        </a>
        <a href="<?php echo $row['id'] ?>" class="table-link danger delmodal" data-toggle="modal" data-target="#deleteModal">
           <span class="fa-stack">
             <i class="fa fa-square fa-stack-2x"></i>
             <i class="fa fa-trash-o fa-stack-1x fa-inverse"></i>
           </span>
        </a>
      </td>
    </tr>

    </tbody>
        <div class="modal fade" id="deleteModal" class="" role="dialog">
          <div class="modal-dialog modal-md">
            <div class="modal-content">
              <div class="modal-body text-center">
                  <p>Are you Sure you want to Delete ?</p>
              </div>
              <div class="modal-footer">
                  <div class="col-lg-7">
                     <form method="post" id="deleteForm">
                       <input type="hidden" id="MemberId" name="MemberId" value="<?php echo $row['id']?>">
                       <button type="submit" name="submit" id="yes_btn" class="btn btn-danger yes_btn">Yes</button>
                     </form>
                     <button type="button" id="no_btn" class="btn btn-success" data-dismiss="modal">No</button>
                   </div>
               </div>    
            </div>
        </div>
   </div>                                           
<?php 
  } 
?>

成员
$(“.getting started”).each(函数(){
$('.getting started')。倒计时('',函数(时间){
$(this.html(time.strftime(“%w wk%d d%H%M M%S”);
});
})
//})
您确定要删除吗