WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2007, 06:34 AM
WebProWorld New Member
 

Join Date: Jul 2007
Posts: 4
shilpi RepRank 0
Default php

how to upload pictures in database
Reply With Quote
  #2 (permalink)  
Old 07-09-2007, 07:42 PM
WebProWorld Pro
 

Join Date: Apr 2004
Posts: 288
imvain2 RepRank 0
Default Re: php

First,

You will need to clarify.

Do you want to upload images and store them as blobs inside of the database, or do you want to upload images to the server and just store the name and location of the images in the database.
Reply With Quote
  #3 (permalink)  
Old 07-10-2007, 03:16 AM
seiretto's Avatar
WebProWorld Pro
 

Join Date: Nov 2006
Location: Huddersfield, Yorkshire, UK
Posts: 109
seiretto RepRank 0
Default Re: php

Hi Shilpi,

It is better to store just the url to the image.
Read how here:
MySQL AB :: MySQL Forums :: PHP :: Re: Display Images - PHP/MySQL

Hope that helps
__________________
Experienced UK website host hosting sites for over a decade; Need to host mutliple domains and websites check out our Reseller hosting or try our UK managed servers
Reply With Quote
  #4 (permalink)  
Old 07-10-2007, 03:44 AM
WebProWorld New Member
 

Join Date: Jul 2007
Posts: 4
shilpi RepRank 0
Default Re: php

thnx for ur reply. i want to store image in database so that i can retrieve whenver i want
Reply With Quote
  #5 (permalink)  
Old 07-10-2007, 11:23 AM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,782
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: php

Images are stored in MySQL in a binary field.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0