qui mancano le basi

togli l'istruzione

Codice PHP:
$rs mysql_fetch_assoc($query_offerta); 
e metti

Codice PHP:
while($rs mysql_fetch_assoc($query_offerta)) 
al posto di
Codice PHP:
while($rs == true