![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/09/2008, 09:15
|
![Avatar de vidalsoft](http://static.forosdelweb.com/customavatars/avatar250866_3.gif) | | | Fecha de Ingreso: julio-2008 Ubicación: /www/...
Mensajes: 339
Antigüedad: 16 años, 6 meses Puntos: 1 | |
Respuesta: problema con insert into ESTAS ENVIANDO MAL LOS CAMPOS AL MOMENTO DE LA INSERCCION,
NO TIENES CAMPO DIRE, TIENES :
content` longblob NOT NULL,
`type` varchar(50) NOT NULL default '',
`path` varchar(255) NOT NULL default '',
QUE SON NOT NULL, TIENES QUE ENVIAR OBLIGATORIAMENTE UN VALOR PARA ESOS CAMPOS, Y NO LO ESTAS HACIENDO EN TU INSERT INTO. EN FIN DEBE SER ASI:
$sql= "INSERT INTO noticias (titulo, mensaje, name, size, type, content,type,path) VALUES ('$titulo','$mensaje','$fileName','$fileSize','$fi leType','$content',$dire)";
espero que te sirva, saludos
__________________ Anthony Vidal Contreras | @AnthonyVidalC | Skype: vidalsystem | [email protected]
Última edición por jam1138; 11/09/2008 a las 09:34
Razón: Recorto
|