怎么在创建的PHP源码区块中调用自建数据库表中的内容。
创建一个PHP源码区块后,使用dao方法查询数据库表 eps_test,出现了如下问题:
ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'eps_test.lang' in 'where clause'
The sql is: SELECT * FROM eps_test
in lib\base\dao\dao.class.php on line 1319, last called by lib\base\dao\dao.class.php on line 718 through function sqlError.in framework\base\router.class.php on line 2118 when visiting
注:在操作过程中未对源代码做任何修改。
PHP区块中代码为
<?php
echo $this->dao->select("*")->from('eps_test')->fetchAll();
回贴