i am new to zend frame work need two mysql queries ca be define in a function of zend controller but it showing
error message as Message: SQLSTATE[42000]: Syntax error or access violation: 1065 Query was empty
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);
OMG!!!! You are using Zend framework and put in your code mysql_query() ???? 😀
You need to use the Zend_Db…
http://framework.zend.com/manual/1.11/en/zend.db.html