Re: Upload File

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Renzo Clavijo schrieb:
hi all..

I'm gonna be more precise:

I wrote a form with fields <text type="file" .... >, then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It
implies: Which field(s) must have the table where I'll save the image?. Is
there an example code to upload the file(s)?

Thanks a lot.

Best Regards

RENZO CLAVIJO

Add a BLOB field in Database and make an INSERT
Best way would be to BASE64 encode your imagefile so you wont have any encoding problems (UTF-8 or such).
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux