How to call category list in footer in magento

<?php $helper = $this->helper(‘catalog/category’) ?> <?php foreach ($helper->getStoreCategories() as $_category): ?> <a href=”<?php echo Mage::getModel(‘catalog/category’)                                                                                                                                                                                                                                                                                            ->setData($_category->getData())->getUrl(); ?>” title=”<?php echo $_category->getName() ?>”>   <?php echo $_category->getName() ?></a> <?php endforeach ?>

How to Add related products to the Magento by code / script

<?php set_time_limit(0); ini_set(‘memory_limit’,’1024M’); require_once ‘../../app/Mage.php’; Mage::app(); $sku=’1042LH’;  //some Sku $product = Mage::getModel(‘catalog/product’)->loadByAttribute(‘sku’,$sku); if($product){ $sRelatedProducts = “123456,123”; $aRelatedProducts = explode(‘,’, $sRelatedProducts);  …