PDA

View Full Version : can anyone help with a profile pic url database php code issue



jamied_uk
03-19-2012, 06:10 AM
Hi everyone, hope someone can help with this,

I want site users on my site to be able to supply a url for a profile picture for there profile and want the url to be stored in mysql database, is there a way to upload this data based on logged in user (id = $id)

so that it can be displayed again for people viewing users profile, or for there own home page there picture is displayed?

jamied_uk
03-19-2012, 06:18 AM
ps i do not want to store image on mysql database this is not good i just want the url to the image stored and recalled when needed!, also repy to this post regarding this topic as there is no edit and i forgot the subscription to the post button (should be on by defult).

alemcherry
04-11-2012, 09:00 AM
Anyone with basic PHP knowledge can do that. It is as simple as fetch the data from form, write it to a database and read it again from database when needed. Obviously the table need to store the user id as well as the URL. Or you can fetch the image using CURL or something and store on your server as a file, if you wish so.

I hop you dont expect someone to write the code for you. This is as simple as it get.