RE: small database

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

 



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 then
just put the path (/username/pic1.jpg) into the db as a string.

Eddie

-----Original Message-----
From: Seabird [mailto:jacco@vliegt.nl]
Sent: Tuesday, November 12, 2002 11:56 AM
To: php-db@lists.php.net
Subject:  small database


Hi everyone,

I'm creating a sample site for a company that does aircraft sales. I use a
MySQL DB to store all the info of the available aircraft. Now, I would like
to store pictures directly inside that same table, so that on the "details"
page, it would provide a picture out of (for example) Field5. Is this
possible and if so how? (I tried blob etc., but can't get it to work).

Thanx,
Jacco
--
http://seabird.jmtech.ca

Attitude is Everything!
But Remember, Attitudes are Contagious!
Is Yours worth Catching????



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


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux