I agree with the others, don't try to store the picture in the db. What I
did was provide a place for users to log-in to my site, when they signed up,
I created a folder (using their username since that had to be unique). When
they uploaded their pictures, I put the pictures in their folder and
As you'll probably see in a lot of responses, it might be better to store
the pictures in a folder on the server and store only the path to the
pictures in the db. That keeps the size of the db smaller.
If you choose to do that, use an HTML form with
enctype=multipart/form-data and an input
Check the PHP-DB archives ;-)
http://news.php.net/article.php?group=php.dbarticle=22433
Hatem
- Original Message -
From: Rich Hutchins [EMAIL PROTECTED]
To: Seabird [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, November 13, 2002 12:24 AM
Subject: RE: [PHP-DB] small database