/    Sign up×
Community /Pin to ProfileBookmark

Member image in a "community"

Not sure if this is an SQL issue or a PHP issue, but I think it’s both, so I’ll post it here…

I want a user of a community to be able to upload an photograph (of themselves for example) onto their profile page. The ‘upload image’ field would be displayed on the main “edit profile” page…

My question is (bare with me whilst I explain)… how do I tell the “profile page of user_id=1” to get the image from location “/imgs/x.jpg”?
Do I put php code exactly where I wish the image to be displayed?

Also, how do I tell the page to upload the image to the “imgs” folder… and then (I presume/guess) tell the database that the image for “user 1” is x.jpg in the “imgs” folder?

I hope this is clear; if not, please let me know so I can clarify!
Many thanks! ?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 06.2006 — For the upload part, see this sticky thread: http://www.webdeveloper.com/forum/showthread.php?t=101466
Copy linkTweet thisAlerts:
@pottersdt2kauthorApr 06.2006 — thanks for that NogDog, greatly appreciated ? Apologies for posting a question that had an answer already...

Anyone know how to get it to display on the member's page, as mentioned previously?
Copy linkTweet thisAlerts:
@acemoApr 06.2006 — attach the filename to the member id in the database.
×

Success!

Help @pottersdt2k spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...