NO HA PODIDO TRANSFERIRSE EL ARCHIVO


'; echo 'VOLVER A LA PÁGINA DE INTRODUCCIÓN DE DATOS'; } if ($_FILES['imagen_conclusiones']['size']==0){ $nombre_conclusiones="../user_image/no_imagen.gif"; }else{ $nombre_imagen_tabla=$nombre_conclusiones; }if ($_FILES['imagen_conclusiones']['type']=="image/jpeg"){ $img=imagecreatefromjpeg($nombre_conclusiones); $bx=imagesx($img); $by=imagesy($img); if ($by>290){ $my=290; $mx=intval($my*$bx/$by); $im=imagecreatetruecolor ($mx, $my); imagecopyresampled ($im, $img, 0, 0, 0, 0, $mx, $my, $bx, $by); imagejpeg($im,$nombre_conclusiones,75); } }elseif ($_FILES['imagen_conclusiones']['type']=="image/png"){ $img=imagecreatefrompng($nombre_conclusiones); $bx=imagesx($img); $by=imagesy($img); if ($by>290){ $my=290; $mx=intval($my*$bx/$by); $im=imagecreatetruecolor ($mx, $my); imagecopyresampled ($im, $img, 0, 0, 0, 0, $mx, $my, $bx, $by); imagejpeg($im,$nombre_conclusiones,75); } }elseif($_FILES['imagen_conclusiones']['type']=="image/gif"){ $img=imagecreatefromgif($nombre_conclusiones); $bx=imagesx($img); $by=imagesy($img); if ($by>290){ $my=290; $mx=intval($my*$bx/$by); $im=imagecreatetruecolor ($mx, $my); imagecopyresampled ($im, $img, 0, 0, 0, 0, $mx, $my, $bx, $by); imagejpeg($im,$nombre_conclusiones,75); } }elseif ($_FILES['imagen_conclusiones']['type']=="image/pjpeg"){ $img=imagecreatefromjpeg($nombre_conclusiones); $bx=imagesx($img); $by=imagesy($img); if ($by>290){ $my=290; $mx=intval($my*$bx/$by); $im=imagecreatetruecolor ($mx, $my); imagecopyresampled ($im, $img, 0, 0, 0, 0, $mx, $my, $bx, $by); imagejpeg($im,$nombre_conclusiones,75); } }elseif ($_FILES['imagen_conclusiones']['type']=="image/x-png"){ $img=imagecreatefrompng($nombre_conclusiones); $bx=imagesx($img); $by=imagesy($img); if ($by>290){ $my=290; $mx=intval($my*$bx/$by); $im=imagecreatetruecolor ($mx, $my); imagecopyresampled ($im, $img, 0, 0, 0, 0, $mx, $my, $bx, $by); imagejpeg($im,$nombre_conclusiones,75); } }else{ echo ''; } #echo 'holasss'; $v1=$_SESSION['id_actividad']; $v2='5';# es el número de la página para la tabla "página". $v3=$nombre_conclusiones; $v4=$_POST['texto_conclusiones']; $insercion=mysql_query("INSERT pagina (id_pagina,id_actividad,num_pagina,imagen,texto) VALUES('','$v1','$v2','$v3','$v4')" ,$c); mysql_close($c); header ("Location: ya_procesado.php?".SID); ?>