Those who need it to accomplish some task or goal.

PHP Interview question and answers.

PHP Interview question and answers for experienced.

Question: What is the difference between unset() and unlink() ?
Answer: unset() sets a variable to “undefined” while unlink()

How to run custom MySql query in Magento ?

$db = Mage::getSingleton(‘core/resource’)->getConnection(‘core_write’);
$result=$db->query(“SELECT * FROM PCDSTable”);

$connect = Mage::getSingleton('core/resource')->getConnection('core_read');
$result=$db->query(“SELECT id FROM `customer_wishlists` WHERE `type`='wishlist'");

Error's and solution's