Boondox Posted October 8, 2008 Share Posted October 8, 2008 Ok I am quite new to PHP and Mysql.. anyway what I am looking for is a way to upload images to mysql database then retrieve them for eash user ---- Basically an avatar script.. Second I need a way to retrieve and display images using a button... Like when a clan leader pushes the button it will display a War alert within my clan page.. Link to comment https://forums.phpfreaks.com/topic/127517-image-upload-and-retrieval-2-questions/ Share on other sites More sharing options...
Bendude14 Posted October 8, 2008 Share Posted October 8, 2008 Don't store the image itself in the DB just the location and name of the file. just google image upload scripts there are heaps of good ones about. Then come back with your code if you have any problems. Link to comment https://forums.phpfreaks.com/topic/127517-image-upload-and-retrieval-2-questions/#findComment-659749 Share on other sites More sharing options...
Boondox Posted October 8, 2008 Author Share Posted October 8, 2008 I have searched and searched for the scripts I am looking for to no avail... As I said I am very new to both PHP and mysql so I was hoping that maybe someone has these scripts already Link to comment https://forums.phpfreaks.com/topic/127517-image-upload-and-retrieval-2-questions/#findComment-659752 Share on other sites More sharing options...
Bendude14 Posted October 8, 2008 Share Posted October 8, 2008 take a look at the zip file attached thats what i found on the net ages ago should work fine ... [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/127517-image-upload-and-retrieval-2-questions/#findComment-659754 Share on other sites More sharing options...
Boondox Posted October 8, 2008 Author Share Posted October 8, 2008 hey man thanks Now I just need to figure out how to get each uploaded picture to go into the databes for each of my members... then retrieve those images for profiles... sure wish I knew what I was doing lol Link to comment https://forums.phpfreaks.com/topic/127517-image-upload-and-retrieval-2-questions/#findComment-659760 Share on other sites More sharing options...
Bendude14 Posted October 8, 2008 Share Posted October 8, 2008 I presume you have a user's table in your DB you will have to add a column for images. Are you letting each person upload there own image i presume? You should be able to add some code to what you already have to insert the path location and file name of the image that they just uploaded. Make a start the post back here Link to comment https://forums.phpfreaks.com/topic/127517-image-upload-and-retrieval-2-questions/#findComment-659766 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.