$connection = Mage::getSingleton('core/resource')->getConnection('core_write');
$connection->beginTransaction();
$sql = 'INSERT INTO tableName (`field1`, `field2`) VALUES (?, ?)';
$bind = array('value1', 'value2');
$connection->query($sql, $bind);
$connection->commit();
If you are searching for the professional web development, app development company in Vadodara then Cloudswift Solutions is the name on which you can trust. Visit our website for more information.
Wednesday, 21 November 2012
magento: insert query for a custom table
Labels:
Magento Backend
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment