当我运行此代码时,发生以下错误

时间:2018-12-25 07:43:20

标签: php

以下代码给了我错误。.

<?php 
    global $ConnectingDB;
    $ViewQuery="SELECT * FROM category";
    $Execute=mysqli_query($Connection,"$ViewQuery") 

    while($DataRows=mysqli_fetch_array($Execute)){
    $Id=$DataRows["id"];
    $DateTime=$DataRows["datetime"];
    $CategoryName=$DataRows["name"];
    $CreatorName=$DataRows["creatorname"];
  ?>
    <tr>
    <td><?php echo $Id; ?></td>
    <td><?php echo $DateTime; ?></td>
    <td><?php echo $CategoryName; ?></td>
    <td><?php echo $CreatorName; ?></td>
    </tr>

    <?php } ?>

解析错误:语法错误,第120行的C:\ xampp \ htdocs \ new \ categories.php中出现意外的'$ Test'(T_VARIABLE)

0 个答案:

没有答案