Ver Mensaje Individual
  #15 (permalink)  
Antiguo 31/03/2009, 15:06
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Tengo un array...para insertar en bd

A ver explico:
1. Los campos de mi tabla catalogo: foto, foto1 y foto2 son de tipo longblob
2. Al dar var_dump($contenido) me sale un monton de codigo raro, este es para la primera:
string(42381) "ÿØÿà\0JFIF\0\0`\0`\0\0ÿáAÑExif\0\0II*\0\0\0\ 0\0\0\0\0\0ò\0\0\0\0)\0\0\0\0\0\0\0\ 0\02\0\0\0\0\0\0:\0\0(\0\0\0\0\0\0\01\ 0)\0\0\0B\0\0\0\0\0\0\0\0\0i‡\0\0\0\0t\0\ 0¤\0\0\0\0\0\0\0\0¤\0\0\0\0\0\0\0\0¤\0\0\ 0\0\0\0\0\0¤\0\0\0\0l\0\0¤\0\0\0\0$\0\0\0¤ \0\0\0\0\0\0\0\0¤\0\0\0\0\0\0\0¤\0\0\0\0\ 0\0\0\0 ¤\0\0\0\0\0\0\0\0 ¤\0\0\0\0\0\0\0\0 ¤\0\0\0\0\0\0\0\0Æ4\0\0EASTMAN KODAK COMPANY\0KODAK EASYSHARE C813 ZOOM DIGITAL CAMERA\0jà\0\0\0\0\0à\0\0\0\0\0KODAK EASYSHARE C813 ZOOM DIGITAL CAMERA\0\0\0\0\0\0 \0\0\0\0š‚\0\0\0\0¦\0\0‚\0\0\0\0®\0\0\"ˆ\ 0\0\0\0\0\0\0\'ˆ\0\0\0\0È\0\0\0\0\0\0\0\002 21\0\0\0\0¶\0\0\0\0\0\0Ê\0\0‘\0\0\0\0 \0’ \0\0\0\0Þ\0\0’\0\0\0\0æ\0\0’ \0\0\0\0î\0\0’\0\0\0\0ö\0\0’\0 ...creo cortarla aqui

Y al respecto de los datos que ingresan al array los recojo de un formulario:
Código php:
Ver original
  1. <!-- <form name="frmimage" method="post" enctype="multipart/form-data" action="insertarBlob.php">
  2. <table>
  3. <tr>
  4. <td align="right" width="19%">Foto 1:</td><td width="61%"><input type="file" size="51" name="foto[]"></td>
  5. </tr>
  6. <tr>
  7. <td align="right" width="19%">Foto 2:</td><td width="61%"><input type="file" size="51" name="foto[]"></td>
  8. </tr>
  9. <tr>
  10. <td align="right" width="19%">Foto 3:</td><td width="61%"><input type="file" size="51" name="foto[]"></td>
  11. </tr> -->
No se que mas puedo hacer al respecto, gracias