Jun 292012
 
$write = Mage::getSingleton('core/resource')->getConnection('core_write');

$readresult = $write->query("insert into tablename values ('a','b','c')");
// or
$readresult = $write->query("select * from tablename ");

while ($row = $readresult->fetch() ) 
{
	$categoryIds[]=$row['id'];
}

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>