Re: actualizar datos numericos y de texto
$consulta1 = "UPDATE `d_producto` SET
`foto`= $_POST[foto],
`precio1`= $_POST[precio1]
WHERE `id_p`=$_POST[id] ";
tiene que ser
$consulta1 = "UPDATE d_producto SET
foto = '" . $_POST[foto] . "', precio1 = $_POST[precio1] WHERE id_p = " . $_POST[id] ;
he hecho dos cambios: uno estético y el otro, el importante, es
foto = '$_POST[foto]'
es un valor de texto, tienes que pasarlo entre comillas.
ff
Subject
Views
Written By
Posted
9260
August 11, 2006 12:40PM
3037
August 11, 2006 02:04PM
Re: actualizar datos numericos y de texto
3902
August 12, 2006 04:34PM
3101
August 13, 2006 09:41PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.