Magento insert query


/ Published in: PHP
Save to your folder(s)

run mysql query direct on your magento script


Copy this code and paste it in your HTML
  1. $write = Mage::getSingleton('core/resource')->getConnection('core_write');
  2. $sql_insert = "insert into table values ('one',0,0)";
  3. $write->query($sql_insert);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.