![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
02/12/2008, 11:13
|
| | Fecha de Ingreso: julio-2008 Ubicación: C. del Uruguay - Entre Rios - Argentina
Mensajes: 4
Antigüedad: 16 años, 6 meses Puntos: 0 | |
Respuesta: Armar <table> con resultados de un SELECT $id=$_GET["id"];
$query="select * from Tabla where id=".$id;
$result=mysql_query($query);
echo "<table>\n<tr>";
$y=mysql_num_fields($result);
while ($row=mysql_fetch_array($result)) {
for ($x=0; $x<=$y; $x++) {
$fieldname=mysql_field_name($result,$x);
if ($row[$fieldname]!='') {
echo '<tr><td>'.$fieldname.'</td><td>'. $row[$fieldname].'</td></tr>\n';
}
}
echo "</table>\n"
-----------------------------------------
www.guialocalgratis.com
www.gomamagodesigns.com |