$query = $this->db->select("select * from printer where ID =1");
foreach ($query->result_array() as $row)
{
echo $row->Terminal;
echo $row->Mone;
}
以上是代码
下面是错误信息
A PHP Error was encounteredSeverity: Warning
Message: mysql_fetch_array() expects parameter 1 to be resource, boolean given
Filename: controllers/Abc.php
Line Number: 19
Backtrace:
File: D:\xampp\htdocs\1.0\application\controllers\Abc.php
Line: 19
Function: mysql_fetch_array File: D:\xampp\htdocs\1.0\index.php
Line: 230
Function: require_once
各路大神,请问如何处理呢? |