Bueno, ya esta solucionado, el problema esta en el insert
Código PHP:
$qry="INSERT INTO peliculas VALUES
(0,'$titulo','$imagen','$tipo','$tamano','$enlace')";
Y residia en el hecho de que en mi DB había definido 7 variables, insertando el siguiente codigo
Código PHP:
$qry="INSERT INTO peliculas VALUES
(0,'$titulo','$imagen','$tipo','$tamano','$enlace'.0)";
ya me permite insertar los valores en mi DB.
Ahora bien, cuando intento reproducir la imagen en el navegador, uso los siguientes escript:
Código PHP:
<!-- selecciono las variables -->
<?php $sSQL = "select * from peliculas where id=".$id ?>
<?php $rs = mysql_query($sSQL); ?>
<?php $fila = mysql_fetch_object($rs); ?>
<?php $tipo= mysql_result($rs, 0, "tipo"); ?>
<?php $contenido= mysql_result($rs, 0, "imagen"); ?>
<?php $nombre= mysql_result($rs, 0, "nombre"); ?>
Código PHP:
<!-- reproduzco la imagen -->
<?php
header("content-type; $tipo");
header("content-disposition: ; filename=\"$nombre\"");
echo $contenido;
?>
con el resultado que me presenta los siguiente errores:
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\divx\descargar_archivo.php:3) in C:\Inetpub\wwwroot\divx\descargar_archivo.php on line 90
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\divx\descargar_archivo.php:3) in C:\Inetpub\wwwroot\divx\descargar_archivo.php on line 91
¿Alguien sería tan amable de decirme en que me he equivocado esta vez? y ¿Por que no me deja modificar los header?