Espero poder ayudarte, esto es lo que hago yo cuando quiero mostrar los resultados de una consulta:
Código PHP:
echo "<table><tr><th>id</th><th>empresa</th><th>email</th></tr>";
while($array = mysql_fetch_array($result))
{
echo "<tr><td>".$array["id"]."</td>";
echo "<td>".$array["$empresa"]."</td>;
echo "<td>".array["$email"]."</td></tr>";
}
$con=mysql_close($con);
echo "</table>";
Puede q haya algún fallo pero la idea es esa.