Código PHP:
<?
include("/home/michael/public_html/admin/config.php") ;
$id = $_GET['cod'];
$buscar = mysql_query("SELECT * FROM agendadj WHERE id = '$id'") or die (mysql_error());
if ($row=mysql_fetch_array($buscar)) {
$detalles = substr(stripslashes($row[detalles]),0,100);
?>
<?=$row['apodo']?> - <?=$row['ciudad']?>
DETALLES, ETC
<!--- FILTRO SELECT INICIO--->
<?
include('/home/michael/public_html/admin/config.php') ;
if (!isset($cx))
$cx = 0;
$cantidad=100;
$inicial = $cx * $cantidad;
$pegar = "SELECT DISTINCT ciudad FROM agendadj ORDER BY ciudad";
$cad = mysql_db_query($db,$pegar) or die ("Consulta inválida : $sql");
while ($row = mysql_fetch_array($cad)) {
?>
Ciudades:
<?=$row['ciudad']?><br>
<?
}
?>
<!--- FILTRO SELECT FIN--->
<?
}
?>