Here is how i am creating the zend db connection
$DB = new Zend_Db_Adapter_Pdo_Mysql(array("host" => "localhost","username" => "root", "password" => "admin123", "dbname" => "user_management"));
The problem i have is that in my model files mysql_query have been used to run queries. I want to pass the DB connection from the controller to the model. How do i get the php factory mysql link resource directly from the zend db connection object.
PS: I have tried adding
$db = $DB->getConnection();
This isnt working, I think it maybe because of some include file missing. Can someone help me out with this.