需要两个 Mysql 查询才能在 zend 控制器的函数中定义 但它显示
错误消息为信件: SQLSTATE[2000]: 语法错误或访问侵犯: 1065 查询为空
public function addisplayAction()
{
$registry = Zend_Registry::getInstance();
$DB = $registry[ DB ];
$sql = "SELECT cateno,catename,image FROM hl_category ORDER BY`hl_category`.`cateno` ASC LIMIT 0 , 42";
$result = $DB->fetchAssoc($sql);
$sql1 = mysql_query("select * from ad where cid=8");
$result1 = $DB->fetchAssoc($sql1);
$this->view->assign( title , Member List );
$this->view->assign( description , Below, our members: );
$this->view->assign( datas ,$result);
$this->view->assign( datas1 ,$result1);