Ver originalif ($fila = mysql_fetch_assoc($res)){
Ver originalwhile ($fila = mysql_fetch_assoc($res)){