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

时间:2018-05-17 09:11:09

标签: php html mysql

当我尝试在HTML表格中获取和显示数据时,我得到了这种错误DataTables警告:table id = DataTables_Table_0 - 第0行请求的未知参数“1”。有关此错误的详细信息,请参阅{{3 }}

<?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();
                } ?>

0 个答案:

没有答案