请教:关于区块中添加PHP源码

liax 2017-08-14 20:59:17

怎么在创建的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();

回帖列表
liax 2017-08-14 21:50:51
已解决:)
1/ 1
浙ICP备14025715号-9
ZSITE8.6