Tengo el siguiente código:
Código PHP:
<!-- Seccion Editar -->
<?php }
break;
case 'editar';
if ($logan) {
$resnot = mysql_query("SELECT * FROM casas Where idRef='$_GET[nt]'");
$notis = mysql_fetch_array($resnot);
?>
<form name="editar" action="procesa.php?ps=grabar" method="POST">
<input type="hidden" name="idRef" value="<?=$_GET[nt]?>">
<table width="900" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: 2px solid #000000">
<tr><td height="15" colspan="5" valign="top"><?php include("includes/cabecera.php");?></td></tr>
<tr><td height="22" colspan="2" valign="top"><a href="index2.php?p=salir" onClick="return confirmar('¿ Seguro que desea cerrar la sesión ?')"><img src="imagenes/logocerrar.gif" width="160" height="60" border="0" alt="Cerrar Sessión"></a></td></tr>
<td width="900" height="34" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="imagenes/centro-cabecera.gif">
<tr><td height="12" width="20"></td>
<td valign="top" class="Titulo"><img src="imagenes/icon-principalagris.gif" width="6" height="6"><b> Editar los datos</b></td></tr>
<tr><td height="5"></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="40" height="19"> </td>
<td width="85" valign="top">Dirección .:</td>
<td width="202" valign="top"><input name="Dire" id="Dire" size="40" value="<?$notis[Dire]?>"></td>
<td width="760"> </td>
</tr>
</table>
</form>
<!-- Final Editar -->
Abrir la base de datos la abre bien, ya que primero hay un while listado los diversos clientes. Al clikear sobre el enlace tendria que mostrar los valores de los campos pero nuestra el código.
Un Saludo.