Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function updateTable(){
- $id = Mage::getSingleton('customer/session')->getCustomer()->getId();
- $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
- $connection->query("UPDATE my_table SET value = 0 WHERE customer_id=". "$id");
- }
- <?php Mage::helper('productquestions')->updateTable() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement