To display SQL of Zend_Db_Select object, try this
$query = $this->select()
->where("permitted = 'Y'")
->order("id DESC")
->limit($count);
echo $query->__toString();
that will do it.
sharing some useful programming tips with other developers.
To display SQL of Zend_Db_Select object, try this
$query = $this->select()
->where("permitted = 'Y'")
->order("id DESC")
->limit($count);
echo $query->__toString();
Copyright 2008 Splashpress Media | Converted by eBlog Templates | Blogging Pro Blogger | Designed by Design Disease
0 comments
Post a Comment