Monday, 18 August 2014

How to run delete query in magento

$con = Mage::getSingleton('core/resource')->getConnection('core_write');

$condition = array($con->quoteInto('id=?', "$actid"));
$con->delete('wolesaler_table', $condition);

No comments:

Post a Comment