$postIdDF = $post->getId();

$resourceDF = Mage::getSingleton(‘core/resource’);

$readConnectionDF = $resourceDF->getConnection(‘core_read’);

$fieldNames =’Content Image’;

$queryDF = ‘SELECT * FROM ‘ . $resourceDF->getTableName(‘postmeta’) . ‘ WHERE post_id = “‘.$postIdDF.'” AND meta_key Like “%’.$fieldNames.’%” ‘;

$fgt = ”;

$l=0;

$resultsDF = $readConnectionDF->fetchAll($queryDF);

//echo ‘<pre>’;

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.