si lo haces asi???
Código PHP:
Ver original<?php
$mysqli = new mysqli(" host ", "user", "pass", "bd");
if ($mysqli->connect_errno) {
echo "Fallo al contenctar a MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
$consulta = "SELECT email from emails where activo = 0 " ;
$resultado = $mysqli->query($consulta) ;
while ($fila = $resultado->fetch_array()) {
echo $fila['email']."<br>";
}
?>
aclaro no se que es lo que necesitas en realidad