Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/02/2006, 08:34
xili48
 
Fecha de Ingreso: agosto-2005
Mensajes: 77
Antigüedad: 18 años, 8 meses
Puntos: 0
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.