Posted By

aashvi on 10/07/10


insert query magento

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Magento insert query

 / Published in: PHP

run mysql query direct on your magento script

  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  

You need to login to post a comment.