Getting all options of a specific attribute in Magento is fairly easy:
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'color'); foreach ($attribute->getSource()->getAllOptions(true) as $option) { echo $option['value'] . ' ' . $option['label'] . "\n"; }