Foros del Web » Programando para Internet » PHP »

tabla de resultados

Estas en el tema de tabla de resultados en el foro de PHP en Foros del Web. buenos dias amigos agradeceria mucho me dijeran como podria hacer la tabla de celdas tipo excel para visualizar mis resultados http://www.grupogba.com/registros.php gracias...
  #1 (permalink)  
Antiguo 25/08/2009, 00:22
Avatar de julita_punch  
Fecha de Ingreso: abril-2007
Ubicación: Lima - Peru
Mensajes: 505
Antigüedad: 17 años
Puntos: 4
tabla de resultados

buenos dias amigos
agradeceria mucho me dijeran como podria hacer la tabla de celdas tipo excel para visualizar mis resultados

http://www.grupogba.com/registros.php


gracias
__________________
Julita Borda Hokama
a lo mejor esto ayuda
  #2 (permalink)  
Antiguo 25/08/2009, 00:50
Avatar de aliza  
Fecha de Ingreso: diciembre-2008
Mensajes: 156
Antigüedad: 15 años, 4 meses
Puntos: 6
Respuesta: tabla de resultados

No se a que te refieres exactamente, pero vamos, para hacer una tabla
<table>
<tr>
<td></td>
</tr>
</table>
__________________
Dando cabezados se aprende...
  #3 (permalink)  
Antiguo 25/08/2009, 01:06
Avatar de julita_punch  
Fecha de Ingreso: abril-2007
Ubicación: Lima - Peru
Mensajes: 505
Antigüedad: 17 años
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
  #4 (permalink)  
Antiguo 25/08/2009, 02:16
Avatar de aliza  
Fecha de Ingreso: diciembre-2008
Mensajes: 156
Antigüedad: 15 años, 4 meses
Puntos: 6
Respuesta: tabla de resultados

<?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>
<table>
<caption><h4>Agenda</h4></caption>
<?php
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
echo "<tr>";
echo "<td><strong>".$rowEmp['nombre']."</strong></td>";
echo "<td><strong>".$rowEmp['direccion']."</strong></td>";
echo "<td><strong>".$rowEmp['telefono']."</strong></td>";
echo "<td>Imagen: ".$rowEmp['imagen']."</td>";
echo "</tr>";
}
}
?>
</table>
</body>
</html>

A ver si con esto te vale.
__________________
Dando cabezados se aprende...
  #5 (permalink)  
Antiguo 25/08/2009, 10:47
Avatar de julita_punch  
Fecha de Ingreso: abril-2007
Ubicación: Lima - Peru
Mensajes: 505
Antigüedad: 17 años
Puntos: 4
Respuesta: tabla de resultados

gracias aliza

me salio esto con tu codigo

http://www.grupogba.com/registros.php

ahora ya estoy buscando la info correspondiente para que los nombres automaticamente me salgan con mayuscula en la primera letra y pueda ver las fotos


gracias

<?php
$conexion = mysql_connect("localhost", "mihueb_kijosh", "ninguna");
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>
<table width="800" border="3" bordercolor="#000000">
<caption><h4 align="left">Agenda</h4></caption>
<div align="left">
<?php
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
echo "<tr>";
echo "<td>".$rowEmp['nombre']."</td>";
echo "<td>".$rowEmp['direccion']."</td>";
echo "<td>".$rowEmp['telefono']."</td>";
echo "<td>Imagen: ".$rowEmp['imagen']."</td>";
echo "</tr>";
}
}
?>
</div>
</table>
</body>
</html>
__________________
Julita Borda Hokama
a lo mejor esto ayuda
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:25.