how to store image in a folder and mysql

Reply

Join Date: Sep 2009
Posts: 1
Reputation: sssss01 is an unknown quantity at this point 
Solved Threads: 0
sssss01 sssss01 is offline Offline
Newbie Poster

how to store image in a folder and mysql

 
0
  #1
Sep 4th, 2009
how to store image in a folder and database using php and mysql and how to retrieve that image.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 197
Reputation: FlashCreations is an unknown quantity at this point 
Solved Threads: 16
FlashCreations's Avatar
FlashCreations FlashCreations is offline Offline
Junior Poster

Re: how to store image in a folder and mysql

 
0
  #2
Sep 5th, 2009
So you want to have a user upload an image that will be stored in a folder and then recorded in a database? Then you want code to be able to retrieve that image? Is that correct?
FlashCreations
(aka PhpMyCoder)

About Me | My Blog | Contact Me
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 340
Reputation: Josh Connerty is an unknown quantity at this point 
Solved Threads: 26
Josh Connerty's Avatar
Josh Connerty Josh Connerty is offline Offline
Posting Whiz

Re: how to store image in a folder and mysql

 
0
  #3
Sep 5th, 2009
If that is the case then you need a bog standard upload script, accept from in the success block of code you will need to run some queries that will store the name of the file in the database along with any other information about the file you may need.

As for retrieving the file you just need to use a get to pass the ID of the file and then run a query using the GET variable and the n display all information about the file and passably a download link.
Posts should be like mini-skirts, long enough to cover enough, but not too long that you cover too much.

My Liveperson: http://liveperson.com/josh-connerty/
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 85
Reputation: Graphix is an unknown quantity at this point 
Solved Threads: 20
Graphix's Avatar
Graphix Graphix is offline Offline
Junior Poster in Training

Re: how to store image in a folder and mysql

 
0
  #4
Sep 5th, 2009
This problem has been extensively discussed in the following thread:

http://www.daniweb.com/forums/thread214601.html

~Graphix
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC