On Friday 28 June 2002 11:29, Msolutions wrote:
> hi all
> how can i save a photo in mysql use php?
> can you tell me the data type too>?
In most cases you shouldn't store a binary file in a database. It is more
efficient to store a pointer (eg the name of the file) then have the actual
file in the filesystem.
If you still want to store the file in the db then the datatype you need is
BLOB. For full details search the archives.
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
To be who one is, is not to be someone else.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php