Forum Moderators: coopster

Message Too Old, No Replies

Storing Images

         

Ananthi

7:08 pm on Jan 31, 2007 (gmt 0)

10+ Year Member



how to store images in mysql and how to create thumbnails for those images?

justageek

7:55 pm on Jan 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



how to store images in mysql and how to create thumbnails for those images?

Don't store the images in the db. Store a filepointer only.

Search for "image resize php" at your favorite search engine and you'll find plenty of scripts and such.

JAG

bidfreelancers

8:01 pm on Jan 31, 2007 (gmt 0)

10+ Year Member



Yes to explain in more details.

Upload your images in some folder lets say uploadedimages/ and save image name in your database.

When you want to show image on any site just get the image name

<img src="uploadedimages/<? echo $strImageName;?>">

If in any case you have to save image in db use blog but not recommended.

Regards

[edited by: coopster at 8:29 pm (utc) on Jan. 31, 2007]
[edit reason] no personal urls please TOS [webmasterworld.com] [/edit]