while($rowuu= mysql_fetch_array($resultuu)){ //asi un nombre por linea echo $rowuu["nombre"] ." ". str_replace(";","",$rowuu["apellidos"]) ."<br>"; }