Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/08/2009, 01:06
Avatar de julita_punch
julita_punch
 
Fecha de Ingreso: abril-2007
Ubicación: Lima - Peru
Mensajes: 505
Antigüedad: 17 años, 1 mes
Puntos: 4
Respuesta: tabla de resultados

hola aliza
este es mi codigo

<?php
$conexion = mysql_connect("localhost", "mihueb_kijosh", "clave");
mysql_select_db("mihueb_demo2", $conexion);

$queEmp = "SELECT * FROM empresa ORDER BY nombre ASC";
$resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
$totEmp = mysql_num_rows($resEmp);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Agenda</title>
<style type="text/css">
<!--
body {
font-family: "Trebuchet MS", Tahoma, Verdana;
font-size: 12px;
font-weight: normal;
color: #666666;
text-decoration: none;
padding: 120px;
}
h4 {
color: #CC0000;
}
-->
</style>
</head>
<body>
<h4>Agenda</h4>
<?php
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
echo "<strong>".$rowEmp['nombre']."</strong><>";
echo "<strong>".$rowEmp['direccion']."</strong><>";
echo "<strong>".$rowEmp['telefono']."</strong><>";
echo "Imagen: ".$rowEmp['imagen']."<br><br>";
}
}
?>
</body>
</html>


y me gustaria saber como le hago para crear dentro del codigo la tabla correspondiente


gracias
__________________
Julita Borda Hokama
a lo mejor esto ayuda