How to Print Magento Query

Hi

view your query in browser try this code. i have write small example you have follow this code and print your query

EX.
$collection = Mage::getModel('catalog/product')->getCollection();
echo $collection->getSelect()->__toString();exit;

Enjoy :)

0 comments: