Código PHP:
<form enctype="multipart/form-data" action="arriba.php" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="700000000" />
<!-- Name of input element determines name in $_FILES array -->
<table width="520" border="0" cellspacing="2" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF"><font size="3" face="Geneva, Arial, Helvetica, sans-serif" class="margen-iz">Subir Foto (Recuerda, <strong><font color="#FF0000">solo JPG</font></strong>)</font></td>
<td><font size="2" face="Geneva, Arial, Helvetica, sans-serif">
<input name="userfile" type="file" class="formulario">
</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="3" face="Geneva, Arial, Helvetica, sans-serif" class="margen-iz">Subir Thumbnails</font></td>
<td><font size="2" face="Geneva, Arial, Helvetica, sans-serif">
<input name="chica" type="file" class="formulario" id="chica">
</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="3" face="Geneva, Arial, Helvetica, sans-serif" class="margen-iz">Categoria</font></td>
<td><select name="categoria" class="formulario">
<?
include("conexion.php");
//Ejecutamos la sentencia SQL
$result=mysql_db_query("$db","select * from categorias");
//Mostramos los registros
while ($row=mysql_fetch_array($result))
{
echo '<option value="'.$row["categoria"].'">'.$row["categoria"].'</option>';
}
mysql_free_result($result)
?>
</select></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="3" face="Geneva, Arial, Helvetica, sans-serif"> </font></td>
<td><input type="submit" value="Subir" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="3" face="Geneva, Arial, Helvetica, sans-serif"> </font></td>
<td> </td>
</tr>
</table>
<br>
</form>