MySQL Forums
Forum List  »  Spanish

Re: actualizar datos numericos y de texto
Posted by: Faustino Forcen
Date: August 12, 2006 04:34PM

$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

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: actualizar datos numericos y de texto
3902
August 12, 2006 04:34PM


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.