выложи код файла - посмотрим что не так сделал
в includes/home.php
//Новинки полный список
$new_p = array();
$n = db_query("SELECT productID, name, default_picture, Price, brief_description FROM ".PRODUCTS_TABLE." WHERE enabled=1 AND default_picture IS NOT NULL AND date_added >='".date("Y-m-d H:i:s", time()-10*86400)."' ORDER BY productID DESC LIMIT 0,9");
while ($row = db_fetch_row($n))
{
$p = db_query("SELECT filename, thumbnail FROM ".PRODUCT_PICTURES." where photoID=".$row[2]);
$p_row = db_fetch_row( $p );
if ( $p_row )
{
if ( file_exists( "./products_pictures/".$p_row[0] ) )
{
$row1[0] = $p_row[0];
$row1[1] = $p_row[1];
$row1[2] = $row[0];
$row1[3] = $row[1];
$row1[4] = show_price($row[3]);
$row1[5] = $row[4];
$new_p[] = $row1;
}
}
}
$smarty->assign("new_product1", $new_p);
в home.tpl.html
<p>
{section name=i loop=$new_product1}
<center>
<table border=0 width="161" cellspacing=1 cellpadding=5>
<div align="center" class="axt1">Новинки</div>
{section name=i loop=$new_product1}
{if $smarty.section.i.index is div by 3}
<tr>{/if}
<td width="149" valign=top>
<table border=0 width=49% bgcolor=#FF0000 cellpadding=0 cellspacing=1>
<tr>
<td> <table width=145 border=0 cellpadding="0" cellspacing="0" bgcolor=white>
<tr>
<td width="145" height=130 ><div align="center"><a href="index.php?productID={$new_product
[2]}"><img src="./products_pictures/{$new_product[0]}"></a></div></td>
</tr>
<tr>
<td height="60" align=center><div align="center"></div><a href="index.php?productID={$new_product[2]}">{$new_product[3]}</a></td>
</tr>
<tr>
<td align=center><font color=red><div align="center"><b>{$new_product[4]}</b></div>
</font></td>
</tr>
</table>
</td> </tr>
</table></td>
{if ($smarty.section.i.index+1) is div by 3}</tr>
{/if} {/section}
</table>
</center>
{/section}