while($riga = mysql_fetch_row($result)) {
echo $riga[0];
echo $riga[1];
.....
}

p.s. quando apri il tag php usa <?php per non avere problemi.