datatables警告:table id=datatables\u table\u 0-请求第0行的未知参数“1”

whhtz7ly  于 2021-06-21  发布在  Mysql
关注(0)|答案(0)|浏览(177)

在尝试获取和显示html表datatables中的数据时,出现了这种错误警告:table id=datatables\u table\u 0-请求的行0的未知参数“1”。有关此错误的详细信息,请参阅http://datatables.net/tn/4

<?php
  require_once 'connection.php';

  try
  {
     $stmt = $cont->prepare("SELECT * FROM  table_de_routage");
     $stmt->execute();

  ?>
   <div class="panel-body">
      <table class="table datatable">
         <thead>
         <?php if($row=$stmt->fetch(PDO::FETCH_ASSOC)){ ?>
             <tr>
               <th>adresses IP</th>
               <th>destinations(<?php echo $row['destinations']; ?>)</th>
               <th>routes(<?php echo $row['routes']; ?>) </th>
               <th>active(<?php echo $row['active'];?>)</th>
               <th>holddown(<?php echo $row['holddown'] ;?>)</th>
               <th>hidden(<?php echo $row['hidden'];?>) </th>

             </tr>
             <?php 
               }
              ?>
           </thead>
           <tbody>
           <?php while ($row=$stmt->fetch(PDO::FETCH_ASSOC)){ ?>
             <tr>
              <td><?php echo $row['adresses_ip']; ?></td>
             </tr>
           <?php
                }
             }
            catch(PDOException $e)
                {
                  echo $e->getMessage();
                } ?>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题