Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public function updateTable(){
  2. $id = Mage::getSingleton('customer/session')->getCustomer()->getId();
  3. $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
  4. $connection->query("UPDATE my_table SET value = 0 WHERE customer_id=". "$id");
  5.  
  6. }
  7.  
  8. <?php Mage::helper('productquestions')->updateTable() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement