Attaching link from db!?

Discussion in 'PHP' started by jmansa, Nov 21, 2005.

  1. #1
    I have a database table with 2 fields (name, link) and I have a page where i get the names, but how do I attach the link to the name???
     
    jmansa, Nov 21, 2005 IP
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you try rephrasing the question and going into a bit more detail of what you are referring to? Or do you mean you just don't know how to output the links with anchor text. If that's the case, in your loop just do:
    echo '<a href="'.$link.'">'.$name.'</a>';
    PHP:
     
    exam, Nov 22, 2005 IP