Sorry I meant To...
Hadn't had my morning coffee.
On line 16 you have:
$rsEnvio = new WA_MySQLi_RS("rsEnvio",$mostaff,1);
change it to:
$rsEnvio = new WA_MySQLi_RS("rsEnvio",$mostaff,0);
That last number is the number of rows to return in the recordset. Setting it to 0 will return all rows.