<div>Hola cristina, me parece que te falta decidir el destino, con mi bajo conocimiento diria qu le falta eso.</div>
<div>te mando un codigo pa que veas como si me sale(ejemlo con dos imagenes):</div>
<div>atte Dany :</div>
<div><a href="http://www.soft1162.com/dany">www.soft1162.com/dany</a></div>
<div>
<p>&lt;?php<br>/* SCRIPT PARA LA SUBIDA DE IMAGNES Y GRABARLOS EN MYSQL PARA LUEGO LLAMARLOS :)*/<br>//VEAMOS...<br>$descripcion=$_POST['txtdescripcion'];<br>$imagen1=$HTTP_POST_FILES['imagen1']['tmp_name'];<br>$imagen2=$HTTP_POST_FILES['imagen2']['tmp_name'];
<br>$nombre1=$HTTP_POST_FILES['imagen1']['name'];<br>$nombre2=$HTTP_POST_FILES['imagen2']['name'];<br>$size1=$HTTP_POST_FILES['imagen1']['size'];<br>$size2=$HTTP_POST_FILES['imagen2']['size'];<br>$tipo1=$HTTP_POST_FILES['imagen1']['type'];
<br>$tipo2=$HTTP_POST_FILES['imagen2']['type'];<br>$boleano='';<br>if(empty($nombre1) &amp;&amp; empty($nombre2)){ <br>echo &quot;nadaa..........&quot;;</p>
<p>}<br>else{<br>echo &quot;&lt;br&gt;tipos... $tipo1 &lt;br&gt;$tipo2 &lt;br&gt; &lt;br&gt; &lt;br&gt;&quot;;<br>&nbsp;if(($tipo1!=&quot;image/pjpeg&quot;&nbsp; || $tipo2!=&quot;image/pjpeg&quot;)){<br>&nbsp;echo &quot;***la imagen no es jpeg o no estan completas las dos imagenes patra cargar***&quot;;
<br>&nbsp;exit;<br>&nbsp;}<br>&nbsp;if((size1&gt;=50000&nbsp; || $size2&gt;=300000)){<br>&nbsp;echo &quot;***LA IMAGEN 1 pesa mas de 50kb o la imagen 2 pesa mas de 300 kb..tiene que ser menos***&quot;;<br>&nbsp;exit;<br>&nbsp;}<br>&nbsp;<br>&nbsp;$destino1='/home/soft1162/public_html/dany/uploads/'.$nombre1;
<br>&nbsp;$destino2='/home/soft1162/public_html/dany/uploads/'.$nombre2;<br>//&nbsp;$destino2='D:/uploads/'.$nombre2;<br>&nbsp;echo &quot;&lt;br&gt; $size1 --&nbsp; $size2&quot;;<br>&nbsp;if(is_uploaded_file($imagen1)){<br>&nbsp;if(!move_uploaded_file($imagen1,$destino1) || !move_uploaded_file($imagen2,$destino2) ){&nbsp;
<br>&nbsp;echo &quot;&lt;br&gt;hubo algun erro al subir los archivos&quot;;&nbsp;}<br>&nbsp;else { <br>&nbsp;echo &quot;alright..:)&quot;;<br>&nbsp;include(&quot;conexion.inc&quot;);<br>&nbsp;$sql=&quot;insert into imagenes values('','$nombre1','$nombre2','$descripcion')&quot;;
<br>&nbsp;echo $sql;<br>&nbsp;if(!mysql_query($sql)){echo &quot;error :( no puede ser registrado en la base de datos&quot;;}<br>&nbsp;<br>&nbsp;}<br>&nbsp;}</p>
<p>}</p>
<p>?&gt;</p>
<p>//el form html es:</p>
<p>&lt;form name='imagenes' action='imagenes.php' method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;</p>
<p>&nbsp; &lt;table width=&quot;695&quot; border=&quot;1&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr bgcolor=&quot;#006699&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;strong&gt;Subir imagenes a mi pagina &lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
<br>&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td width=&quot;113&quot;&gt;Id- Diario &lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td width=&quot;553&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;txtid&quot; disabled value=&lt;?php echo&nbsp; generar();
<br>&nbsp;&nbsp;&nbsp; ?&gt; &gt;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td height=&quot;24&quot;&gt;img Chica&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;span class=&quot;Estilo1&quot;&gt;&lt;input type=&quot;file&quot; name='imagen1'&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;Estilo2&quot;&gt;la imagen debe ser de 100*70&lt;/span&gt;&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;img Grande &lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;file&quot; name=&quot;imagen2&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;Estilo2&quot;&gt;la imagen de 800*600, pesar menos de 150 kb &lt;/span&gt;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;comentario&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;textarea name='txtdescripcion' cols=&quot;60
<br>&nbsp;&nbsp; &quot; rows=&quot;3&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td colspan=&quot;2&quot;&gt;&lt;div align=&quot;center&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='hidden'&nbsp; value='150' name='capacidad'&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;reset&quot; name=&quot;Submit&quot; value=&quot;Borrar&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Enviar&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;&lt;/td&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp; &lt;/table&gt;<br>&nbsp; &lt;div align=&quot;center&quot;&gt;&lt;/div&gt;<br>&lt;/form&gt;</p></div>
<div>&nbsp;</div>