Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/11/2007, 19:29
Avatar de davincci
davincci
 
Fecha de Ingreso: enero-2005
Mensajes: 193
Antigüedad: 19 años, 3 meses
Puntos: 0
Como actualizo de esta forma

Hola a todos, en este momento estoy intentando de hacer una actualizacion de registro en esta forma, pero al ejecutar en el explorer no me muestra la id que deberia tomar,es decir del registro a editar.


Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<table width="589" height="768" border="0" align="center" cellpadding="0" cellspacing="0" id="principal">
  <tr>
    <td width="571" height="462" valign="top" class="content"><p align="center"><span class="titulos">ACTUALIZAR PRODUCTOS</span></p>
        <table width="100%" align="center">
          <tr>
            <td><div align="center"><strong>Imagen</strong></div></td>
            <td><div align="center"><strong>Categoria</strong></div></td>
            <td><div align="center"><strong>Nombre</strong></div></td>
            <td><div align="center"><strong>Descripci&oacute;n</strong></div></td>
            <td><div align="center"><strong>Valor</strong></div></td>
            <td><strong>Editar</strong></td>
          </tr>
          <?php
$conexion 
mysql_connect('localhost''root''xxx');
mysql_select_db('comercio');
$tabla mysql_query('SELECT * FROM productos');
while (
$registro mysql_fetch_array($tabla)) 

?>
          <tr>
            <td height="52"><img src="../imagprod/<?php echo $registro['imagen']; ?>" width="50" /></td>
            <td><?php echo $registro['idcategoria']; ?></td>
            <td><?php echo $registro['nombre']; ?></td>
            <td><?php echo $registro['descripcion']; ?></td>
            <td><strong>$</strong><?php echo $registro['valor']; ?></td>
            <td><div align="center"><strong><a href="actualizar.php?id=<?php echo $registro_tabla['id'];?>">Editar</a></strong></div></td>
          </tr>
          <?php
}
mysql_free_result($tabla);
mysql_close($conexion);
?>
        </table>
      <p align="center">&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
</body>
</html>
la barra de estado me muestra esto: http://localhost/andina/panel/actualizar.php?id= en lugar de algo asi http://localhost/andina/panel/actualizar.php?id=1 o 2 o 3.

Agradezco su colaboracion. Gracias