www.webdeveloper.com
Results 1 to 4 of 4

Thread: Member image in a "community"

  1. #1
    Join Date
    Aug 2005
    Location
    Stoke-on-Trent, England
    Posts
    65

    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!
    Brian Littrell "Welcome Home" - released 2nd May 2006
    ----------------------------------------------------------------------------------
    The Backstreet Project - dedicated Backstreet Boys' forum

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,246
    For the upload part, see this sticky thread: http://www.webdeveloper.com/forum/sh...d.php?t=101466
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Aug 2005
    Location
    Stoke-on-Trent, England
    Posts
    65
    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?
    Brian Littrell "Welcome Home" - released 2nd May 2006
    ----------------------------------------------------------------------------------
    The Backstreet Project - dedicated Backstreet Boys' forum

  4. #4
    Join Date
    Oct 2005
    Posts
    244
    attach the filename to the member id in the database.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles