Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/05/2008, 15:38
Avatar de Fogox
Fogox
 
Fecha de Ingreso: abril-2008
Mensajes: 59
Antigüedad: 16 años
Puntos: 0
Pregunta no consigo q me muestra la lista de mi mysql...

Consulta como puedo mostrar mi base mysql, no consigo la menera me dan una mano, yo tengo...

$cnx =mysql_connect("localhost","xxxx","xxxxx");
$cnx = mysql_select_db("xxxxx");

$rs = mysql_query("select nombre, nick, email, pass from users where id = $id");

list($id,$nombre,$nick,$email,$pass) = mysql_fetch_row($rs);

<h2>Actualiza Cliente <?= $nombre ?></h2>

<form action="registro.php" method="post">
<input type="hidden" name="id" value="<?= $id ?>">
<table>
<tr>
<td>Id</td>
<td><?= $id ?></td>
</tr>
<tr>
<td>Nombre</td>
<td><input type="text" name="nombre" value='<?= $nombre ?>'></td>
</tr>
<tr>
<td>Domicilio</td>
<td><input type="text" name="nick" value='<?= $nick ?>'></td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" name="email" value='<?= $email ?>'></td>
</tr>
<tr>
<td valign="top">password</td>
<td>
<input type="password" name="pass" value= '<?= $pass ?>'></td>
</tr>
</table>
<input type="submit" value="Aceptar">
</form>

<form action="cliente.php" method="post">
<tr>
<td valign="top">muestra cliente</td>
<td><input type="button" value="muestra clientes" /></td>
</tr>
</form>


lo que quiero hacer es seleccionar un $ID por un menu desplegable y actualizarlo... voy encaminado?..., me salta errores este scripts..

gracias por su tiempo

saludos
Dante