Show product filter by attribute value

-Get prodects by attribute value wais -Inset attribute name and Value to filter your prodect -Show prodect of attribute waise

<?php 
    $collection = Mage::getModel('catalog/product')->getCollection();
    $_helper = $this->helper('catalog/output');
    $collection->addAttributeToSelect('*');  //all attribute swlected hear 
    $collection->addAttributeToFilter('your attibute name', '1'); //attribute  name and Value 
    

foreach($collection as $_product)
    {
        //get product collection    
    }
?>