Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/07/2016, 21:46
sdantuoni
 
Fecha de Ingreso: julio-2014
Ubicación: Montevideo
Mensajes: 78
Antigüedad: 9 años, 9 meses
Puntos: 2
Respuesta: Error al insertar comillas en MYSQL

Esto me esta ganando jeje, hice como me dijiste y sigue pasando lo mismo, tal vez puse algo mal.

Código PHP:
$desc $_POST["desc"];
$masinfo $_POST["masinfo"];
$info_tecnica $_POST["info_tecnica"];


$sql "insert into productos(nombre,precio,descripcion,cat,subcat,creador,marca,nuevo,destacado,img,img1,img2,img3,fecha,cod,masinfo,info_tecnica,oferta) values (\"$_POST[nombre]\",\"$_POST[precio]\",".addslashes($desc).",\"$_POST[cat]\",\"$_POST[subcat]\",\"$_POST[creador]\",\"$_POST[marca]\",\"$_POST[nuevo]\",\"$_POST[destacado]\",\"$url\",\"$url1\",\"$url2\",\"$url3\",NOW(),\"$cod\",".addslashes($masinfo).",".addslashes($info_tecnica).",\"$_POST[oferta]\")"
__________________
¿Necesitas Hosting Web? - [JSFIDDLE="www.intechservers.com/hosting"]Intech Servers Hosting[/JSFIDDLE]
¿Necesitas Sitio Web? - [JSFIDDLE="www.intechservers.com/web"]Intech Servers Web[/JSFIDDLE]