html / php表没有填充只显示空白页面

时间:2018-05-15 18:33:48

标签: php html

我有一些可编辑的函数表数据我想放在一个表中,它运行没有错误,但然后返回一个空白页。我有什么遗失的吗? 这是表格代码。如果需要,我也可以链接数据库连接。

<section class="cc-margin-top-50">
  <div class="container-fluid">
        <div class="page-header">
            <h4><i class="fa fa-chevron-down toggle" aria-hidden="true"></i></span> Animals in shop </h4>
        </div>
        <div class="table-responsive well">
              <table class="datatable display responsive">
                    <thead>
                        <?php addcolumnfilters('7','animals_table'); ?>
                          <tr>
                                <th>cats</th>
                                <th>dogs</th>
                                <th>mice</th>
                                <th>rabbits</th>
                                <th>birds </th>
                                <th>snakes</th>
                                <th>edit</th>
                          </tr>
                   </thead>
                   <tbody>
                     <?php  foreach ($animal as $a); ?>
                            <tr>
                                <td><?php echo $a['cats_count'] ?></td>
                                <td><?php echo $p['dogs_count'] ?></a></td>
                                <td><?php echo $a['mice_count'] ?></td>
                                <td><?php echo $a['rabbits_count'] ?></td>
                                <td><?php echo $a['birds_count'] ?></td>
                                <td><?php echo $a['snakes_count'] ?></td>
                                 <td><a class="cc-pointer" ng-click="edit_animal_count('<?php echo($p[animal]) ?>')" data-toggle="modal" data-target="#modalAnimalEdit"><span
                                   class="glyphicon glyphicon-edit cc-pointer cc-color-blue" title="Edit/View Notes"> </span></a> </td>
                                <td><?php echo $p['edit'] ?></td>
                            </tr>
                          <?php endforeach; ?>

0 个答案:

没有答案