Friday, 27 January 2012

Running a CakePHP SQL query manually

How to run manually SQL database query in CakePHP

$qry="SELECT * FROM table name";
 $result=$this->model->query($qry); //result in array


No comments:

Post a Comment