Difficulty understading the GET fucntion in PHP.

Discussion in 'PHP' started by eritrea1, Jul 4, 2012.

  1. #1
    Hi Everyone.


    I am having difficulty getting past this little problem, in a website I am making supposed, to be an on-line forum where users can register and post anything worth sharing. So, obviously I am trying to make a profile page for each user to show their details, which is a bit more than I can handle in PHP.

    Well, In the Index page, I have a series of articles displayed with the name of their responsible users who submitted them in the first place.
    If you can see in the picture i have attached, there is an " Author " and then the click-able name called " Admin " below the title of the article.

    Now, since the objective is to display the authors profile in full order from database, such as Age, Country, Bio, Joined date...

    I made this link for the username

    Author: <a href='profiles/id.php?user=$nt[author]'>
    Code (markup):
    This means, if you click on the " author " in this case who is the " Admin ", the page will take you to profiles/id.php

    Here is the tough part, I have tried everything I could to show full detail of the user in the id.php, but i am unable to and would love your help on this one.

    Thanks in advance.

    article.png
     
    eritrea1, Jul 4, 2012 IP
  2. jimmybrion

    jimmybrion Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    You will expect Exact answers to this type of questions in core PHP related discussion boards.
     
    jimmybrion, Jul 4, 2012 IP
  3. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Your code snippet too short, I can only assume where the "catch" might be.
    You said you have made the link, this is not the link but only an opening tag for it. Also not sure if it is inside print/echo or inline.
    Assuming print/echo it should be:
    print "Author: <a href=\"profiles/id.php?user={$nt[author]}\">{$nt[author]}</a>";
    Code (markup):
     
    atxsurf, Jul 4, 2012 IP