Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Store image

images php coding issues or problems here.

Moderators: macek, egami, gesf

Store image

Postby kiwi » Thu Apr 15, 2004 8:38 am

how to do this? help me please

i want a user upload a image and the write down some description for the image uploaded (text). The description (text) will be store in MYSQL right? where should i store the uploaded image, is it in the "inetpub/wwwroot" folder? which should be better? help me please, thanks
kiwi
New php-forum User
New php-forum User
 
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am

Postby swirlee » Thu Apr 15, 2004 1:04 pm

Store the image wherever you want, but it should be under your web root if you want to be able to display it on your site. Then store the filename of the image in the database so you can show it when you retrieve the record.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby kiwi » Sat Apr 17, 2004 11:02 am

do i need to mention from where the image should be retrive? i mean the location ?
kiwi
New php-forum User
New php-forum User
 
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am

Postby swirlee » Sat Apr 17, 2004 12:44 pm

swirlee wrote:Then store the filename of the image in the database so you can show it when you retrieve the record.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.