Código PHP:
Ver original
} else { $sql="INSERT INTO archivoipp13 (id, ruta, titulo, centro, campus) VALUES (NULL,'".$ruta."','".$_SESSION['s_carrera']."','".$_SESSION['s_centro']."','".$_SESSION['s_campus']."'"; echo $sql; }
el echo tira:
Cita:
INSERT INTO archivoipp13 (id, ruta, titulo, centro, campus) VALUES (NULL,'upload/431122-password.dic','la titulación de adrian','Escuela Universitaria de Enf','Granada'error insertando nuevo fichero. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1