![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/02/2010, 13:08
|
| | Fecha de Ingreso: febrero-2010
Mensajes: 27
Antigüedad: 15 años Puntos: 0 | |
Respuesta: ayuda modificar datos gracias por el comentario, ya modifique las sentencias con las siguientes instrucciones
EN EL FORMULARIO DE CAPTURA
<div align="center">
<?php
$link = mysql_connect("localhost", "root","necaxa");
mysql_select_db("ejemplo",$link);
$result=mysql_query("select * from ejem where marca = '".$_POST['marca']."'",$link);
Y EN EL FORMULARIO DE MODIFICACION
?php
$link = mysql_connect("localhost", "root","necaxa");
mysql_select_db("ejemplo",$link);
mysql_query("update ejem set no_articulo='$no_ariculo', nom_articulo='$nom_articulo', marca='$marca', talla='$talla' where marca='".$_POST['marca']."'",$link);
echo "¡Datos modificados.\n";
//echo "<a href=index.php>Menú Principal</a>";
mysql_close($link);
?>
AHORA EL PROBLEMA ES Q SOLO ME MODIFICA UN SOLO REGISTRO Q ES EL PRIMERO, ADEMAS DE ESTO NO ME PERMITE MODIFICAR EL CAMPO DE MARCA,
ALGIUEN SABE PORQ Y COMO SOLUCIONARLO.
GRACIAS |