![magento-ecommerce magento-ecommerce](/wp-content/uploads/2011/01/magento-ecommerce-300x217.jpg)
Magento have a wide core functions and you dont need to write mysql query in order to get data from database. In some wired situation where you need to write a Mysql querym you can simple write below two line and you are done. Write MYSQL Query in Magento using below two line. Magento Customization.
$connection = Mage::getSingleton(‘core/resource’)->getConnection(‘core_write’);
$connection->query(“Your Query Here”);
![](/wp-content/plugins/rax-email-subscription-and-social-media-links-after-posts/images/rax-rss.jpg)
![](/wp-content/plugins/rax-email-subscription-and-social-media-links-after-posts/images/rax-twitter.jpg)
![](/wp-content/plugins/rax-email-subscription-and-social-media-links-after-posts/images/rax-facebook.jpg)
![](/wp-content/plugins/rax-email-subscription-and-social-media-links-after-posts/images/rax-myspace.jpg)