';
$sql = 'SELECT * FROM products where display="1" and displayhot1="1" ORDER BY sorting ASC, sc_name asc';
$rs = $db->query($sql);
while($row = $db->fetch_array($rs)) {
$tempcounter++;
if ( $tempcounter==5 )
$temptext .= '
';
$sql_productphoto = "SELECT * FROM attachment WHERE table_name='products' and col_name='Photo Large' and table_id ='".$row["id"] ."'";
$rs_productphoto = $db->query($sql_productphoto);
while ( $row_productphoto = $db->fetch_array($rs_productphoto)){
$photo1 = $row_productphoto["file_name"];
$photopath1 = $row_productphoto["path"];
}
//
$temptext .= '
'.$row["en_name"].'
View '.$row["price1unit"].' $'.$row["price1"] * $_SESSION['currency'].'
';
}
$temptext .= '
';
if ( $tempcounter>=5 )
$temptext .= '
‹
›';
$temptext .= '