stampa a video un po di variabili per provare a risalire al problema
Codice PHP:
$query1 "SELECT * FROM ordini where ID = '$id' ORDER BY prodotto";
echo 
$query1."\n";
$dati1 mysql_query($query1$DB) or die(mysql_error()); 
while(
$row1 mysql_fetch_array($dati1)){ 
    
var_dump($row1);
    if(
$row1[2] ==""){
        echo
"<span class=togli>Nessun prodotto selezionato!</span>

"
;
    }else{
            echo
"<td width=40% align left class=testounico>$row1[2]</td>
       <td width=20% align=right class=testounico>
$row1[3] euro</td>
       <td width=20% align=right class=testounico>
$row1[4]</td>
       <td width=30% align=right class=testounico>
$row1[5] euro</td>";
    }


[edit]visto meglio .. immagino che l'id sia univoco per cui il while($row1 = mysql_fetch_array($dati1)) è tra l'altro superfluo