943,590 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1740
  • PHP RSS
Sep 4th, 2009
0

how to store image in a folder and mysql

Expand Post »
how to store image in a folder and database using php and mysql and how to retrieve that image.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sssss01 is offline Offline
1 posts
since Sep 2009
Sep 5th, 2009
0

Re: how to store image in a folder and mysql

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?
Reputation Points: 47
Solved Threads: 47
Posting Whiz
FlashCreations is offline Offline
393 posts
since Sep 2008
Sep 5th, 2009
0

Re: how to store image in a folder and mysql

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.
Reputation Points: 31
Solved Threads: 27
Unverified User
Josh Connerty is offline Offline
342 posts
since Apr 2009
Sep 5th, 2009
0

Re: how to store image in a folder and mysql

This problem has been extensively discussed in the following thread:

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

~Graphix
Reputation Points: 82
Solved Threads: 74
Posting Pro in Training
Graphix is offline Offline
400 posts
since Aug 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Date pre-1970, strtotime and safestrtotime nor mktime is of any help
Next Thread in PHP Forum Timeline: help with flash and php





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC