<!--forshow other product-->
<?php
$result = array();
$products = Mage::getModel('catalog/product')->getCollection();
$prodIds=$products->getAllIds();
$result = $prodIds;
?>
<div class="box-others-also-like">
<ul>
<?php
if(sizeof($result) >= 6)
{
$ourneed= array_rand($result,6);
foreach($ourneedas$cc)
{
$thisproduct= Mage::getModel('catalog/product')->load($result[$cc]);
?>
<li>
<a href="<?php echo $thisproduct->getProductUrl(); ?>"title="<?php echo $thisproduct->getName(); ?>"><img src="<?php echo $this->helper('catalog/image')->init($thisproduct, 'small_image')->resize(200) ?>"width="200"height="200"alt="<?php echo $thisproduct->getName(); ?>"/></a>
</li>
<?php } ?>
<?php
}else
{
foreach($resultas$cc)
{
$thisproduct= Mage::getModel('catalog/product')->load($cc);
?>
<li>
<a href="<?php echo $thisproduct->getProductUrl(); ?>"title="<?php echo $thisproduct->getName(); ?>"><img src="<?php echo $this->helper('catalog/image')->init($thisproduct, 'small_image')->resize(200) ?>"width="200"height="200"alt="<?php echo $thisproduct->getName(); ?>"/></a>
</li>
<?php
}
}
?>
</ul>
</div>
<!--forshow other product-->