Q:

How to get manufacturer name for each product

I have to get some attributes for each product I've gotten most of them but I don't know how to get manufacturer name and the upc or ean barcode value in adminhtml.
I've tried with this code
         $name = 'Manufacturer';
         $attributeInfo = Mage::getResourceModel('eav/entity_attribute_collection')->setCodeFilter($name)->getFirstItem();
         $attributeId = $attributeInfo->getAttributeId(81);
         $attribute = Mage::getModel('catalog/resource_eav_attribute')->load($attributeId);
         $attributeOptions = $attribute ->getSource()->getAllOptions(false);
         var_dump($attribute);

But I can Just print (like in the image) $attribute level and then the $attributeOptions goes empty.

A:

$productId='your_product_id';
$product=Mage::getModel('catalog/product')->load($productId);

$manufaturer=$product->getAttributeText('manufacturer');

