Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/03/2008, 19:15
EJR
 
Fecha de Ingreso: marzo-2008
Mensajes: 2
Antigüedad: 16 años, 1 mes
Puntos: 0
Link desde base de datos

Mi consulta es la siguiente, traigo datos desde una tabla en mysql, pero quiero que se muestren como link a otra pagina, como puedo hacerlo ?
Gracias.

<html>
<head>
<title>Reporte de Ciudades</title>
</head>
<body>
<h1>Reporte de Ciudades</h1>
<table border=”1”>
<tr>
<td>ID Ciudad</td>
<td>Nombre</td>
</tr>

<?php
$conexion = mysql_connect('localhost','root','3du4rd0');
mysql_select_db('inmobiliaria');
$tabla = mysql_query('SELECT * FROM ciudades');
while ($registro = mysql_fetch_array($tabla)) {
?>

<tr>
<td><?php echo $registro[id]; ?></td>
<td><?php echo $registro[nombre]; ?></td>

</tr>



<?php
}
mysql_free_result($tabla);
mysql_close($conexion);
?>

<table>
</body>
</html>