Ver original<?phpfunction conexion($host,$user,$pass,$db){ mysql_connect ($host,$user,$pass) or die ("Datos erroneos"); mysql_select_db ($db) or die ("la base de datos no existe"); } conexion ($host,$user,$pass,$db); while ($row = mysql_fetch_array(mysql_query ("select * from email" ))) { $correos[] = $row;} print_r ($correos); ?>