$db = Mage::getResourceSingleton('core/resource')->getConnection('core_write');
$result = $db->query('SELECT 'entity_id' FROM 'catalog_product_entity');
$result = $db->query('SELECT 'entity_id' FROM 'catalog_product_entity');
if(!$result) {
return FALSE;
}
return FALSE;
}
$rows = $result->fetch(PDO::FETCH_ASSOC);
if(!$row) {
return FALSE;
}
return FALSE;
}
print_r($row);
Source : http://www.richardcastera.com/
No comments:
Post a Comment