Devi usare un ciclo while:
Codice PHP:
while($row=mysql_fetch_array($query)){
//CHECKBOX