...
in effetti ti chiederei se puoi spiegarmi un po il codice che mi hai postato,
... ci provo...
la query seleziona e collega le due tabelle
ordinando i risultati per categorie e offerte (non c'e' piu' prodotti)

poi il ciclo if:
$num = 0; il contatore??

while($row = mysql_fetch_assoc($res)) {cosa intendi per $res, il risultatodella query??

if($num == 0) {
echo "<tr><td> $row[prodotto] - $row[categoria]</td>";
...
}
elseif($num == 1 ) {
echo "<td> $row[prodotto]</td>";
}
else {
echo "<td> $row[prodotto]</td> </tr>";
$num = 0;
}
}[/CODE]

grazie