I used following format for custom query:
$data = $this->Login->query("select * from logins;");
How do I read and display da开发者_高级运维ta from the $data
variable?
echo "<pre>";
print_r($data);
echo "</pre>";
//Updated code
$this->set('data',$data);
精彩评论