Firebird 数据库 ibase_fetch_object 后数据未显示

Data not showing after ibase_fetch_object from Firebird database

我是 PHP (OOP) 的 CRUD 新手。我已经成功插入数据,但是插入数据后,数据中的所有数据列表都没有显示。这是代码:

Function.php

 class Section {
     function showSection(){
        $sql="SELECT * FROM section";
        $query=ibase_query($sql);
        return $query;
        }
   }

List.php

<table>
   <tr>
   <td>No</td>
   <td>Section Code</td>
   <td>Section Name</td>
   </tr>
        <?php
        include ('Function.php');
        $No=1;
        $Sec=new Section();
        $show=$Sec->showSection();
        while ($data=ibase_fetch_object($show)){
        echo"
        <tr>
        <td>
        <td>$data->section_code</td>
        <td>$data->section_name</td>
        </tr>";
        $No++
        };        
        ?>
        </table>

我应该怎么办?有什么问题吗?

尝试$data->SECTION_CODE(字段名称大写)