el script no me dá errores, sube el nombre de la foto a la base de datos pero no los archivos a mi directorio imágenes
![Golpeado](http://static.forosdelweb.com/fdwtheme/images/smilies/pelea.png)
este es el script:
<?
if (isset ($enviar)) {
print "$f1 = f1<br>\n ";
print "$f1_name = f1_name<br>\n ";
print "$f1_type = f1_type<br>\n ";
print "$f1_size = f1_size<br>\n ";
print "$f2 = f2 <br>\n";
print "$f2_name = f2_name<br>\n ";
print "$f2_type = f2_type <br>\n";
print "$f2_size = f2_size<br>\n";
print "$f3 = f3 <br>\n";
print "$f3_name = f3_name <br>\n";
print "$f3_type = f3_type <br>\n";
print "$f3_size = f3_size <br>\n";
$newimage = sprintf ("imagenes/%s", $f1_name);
$newimage2 = sprintf ("imagenes/%s", $f2_name);
$newimage3 = sprintf ("imagenes/%s", $f3_name);
$mysql_link=mysql_connect("localhost", "xxxxx","xxxxxx");
mysql_select_db("xxxx", $mysql_link);
$sql = "INSERT INTO fotodeldia (fecha, foto1, foto2, foto3, titulo, descripcion, contenido)
VALUES (current_date, '$newimage', '$newimage2', '$newimage3', '$ti', '$des', '$cont')";
$result = mysql_query($sql);
exec("cp $f1, $newimage");
exec("cp $f2, $newimage2");
exec("cp $f3, $newimage3");
}
?>
cual puede ser el error?
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
de antemano gracias.
Marcelo
![triste](http://static.forosdelweb.com/fdwtheme/images/smilies/frown.png)