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

Gracias Marvin, pero me he ha quedado un poco dificil el form para recibir el id, desplegar lo que tu me dices y darle actualizar, se me volvio todo un enredo, dame una luz de como hacerlo mira he limpiado el form para que me puedas ayudar, te lo agradeceria mucho.

Código PHP:
<html>

<head>

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<META content=worldwide name=coverage>

<META content=all name=robots>

<META content=general name=rating>

<META content="1 days" name=revisit-after>

<meta name="distribution" content="local">

</script>

<script language="JavaScript1.2">

<!--

top.window.moveTo(0,0);

if (document.all) {

top.window.resizeTo(screen.availWidth,screen.availHeight);

}

else if (document.layers||document.getElementById) {

if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){

top.window.outerHeight = screen.availHeight;

top.window.outerWidth = screen.availWidth;

}

}

//-->

</script>

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="js/prototype.js"></script>

<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>

<script type="text/javascript" src="js/lightbox.js"></script>

<link href="estilo.css" rel="stylesheet" type="text/css">

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

<link href="../estilo.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">



<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">ACTUALIZACION DE DATOS</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('S SELECT * FROM productos where id = $_GET['id']'); 
 
?>
          <tr>
            <td height="52">&nbsp;</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <?php 
mysql_free_result
($tabla); 
mysql_close($conexion); 
?>
        </table>
        <p align="center">&nbsp;</p>
        <p>&nbsp;</p>      </td>

  <td width="18" height="462" class="rightshadow"></td>
  </tr>
</table>



</body>

</html>


Mil gracias.