Write haof XML files: Craig Dunn
(
lists(EN)codenation.net)
Fecha: mié 09 mar 2005 - 10:41:28 CET
--On 08 March 2005 15:45 -0800 Julio < jcglez(EN)microsis.com.mx> wrote:
> Que tan buen día,
>
> No se si se pueda subir una imagen
a una base de datos... Necesito saber
> si se puede y que tipo de dato
tendría que ser en la base de datos
> (MySQL) que utilizaría.
Casi no tengo conocimiento de PHP y MySQL,
> cualquier cosa me sirve de
mucho.
>
> Saludos
Hola Julio,
Para subir una imagen, o otro datos binario, tiene que crear
una columna de
tipo 'blob'.
Por ejemplo:
mysql> CREATE TABLE foo (
-> id int(11) NOT NULL
auto_increment,
-> bar blob,
-> PRIMARY KEY(id)
-> );
Query OK, 0 rows affected (0.15 sec)
Saludos.
Craig
-- Craig Dunn. Internet Veteran and Geek of the Highest Byte Order Director, Capitext Ltd. [ SMS, MMS & Mobile Billing Solutions ] Work: http://www.capitext.com Personal: http://www.craigdunn.org -- PHP Spanish Localization Talk Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Este archivo fue generado por hypermail 2.1.7 : sáb 19 mar 2005 - 01:01:24 CET