ciao
ho dei dati in un db, sul sito devo stampare solo 5 risultati (anke se nel db ne ho inseriti di piu)
ho provato cosi...
$count=1;
while($row_price = mysql_fetch_array($res_price))
{
$inizio = reverseDate($row_price[0]);
$fine = reverseDate($row_price[1]);
$min = ereg_replace ( '\.', ',', $row_price[2]);
$max = ereg_replace ( '\.', ',', $row_price[3]);
if ($min=="0.00") $price=$max;
if ($max=="0.00") $price=$min;
$tab_price .="<td ".$style.">";
$tab_price .="<table cellspacing=0 cellpadding=0 width=100% border=0>";
$tab_price .="<tr>";
$tab_price .="<td ".$title_table.">dal: ".$count.$inizio."
a ".$fine."</td>";
$tab_price .="</tr>";
$tab_price .="<tr>";
$tab_price .="<td ".$price_table.">";
if ($price) $tab_price .=" ".$price; else $tab_price .="min ".$min."
max ".$max;
$tab_price .="</td>";
$tab_price .="</tr>";
$tab_price .="</table>";
$tab_price .="</td>";
$count++;
if ($count==6)
{
exit("pippo");
}
ma non esce dal ciclo...cioe' non mostra nenahce i 5 risultati salta subito all'exit...come mai?