#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    459
    Rep Power
    80

    Formatting URL link


    How can I format this output to a clickable hyperlink? The url is stored with http://.....
    PHP Code:
    $link = $row['url'];

    <a href="<?php echo $link?><?php echo $link?>"</a>
  2. #2
  3. No Profile Picture
    I AM A GOLDEN GOD
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Apr 2003
    Location
    Camarillo, California
    Posts
    5,929
    Rep Power
    1170
    What does the markup look like when you execute that code? How would you normally create an anchor tag (link) in a document? I can see exactly what you're doing wrong, but you should be able to spot it easily if you look at the markup.
    "Seriously, we're not a search engine, we're actual people." ~ ManiacDan

    BookMooch.com : Give books away. Get books you want.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    459
    Rep Power
    80
    I got it.

    <a href="<?php echo $link; ?>"><?php echo $link; ?></a>

    Comments on this post

    • lnxgeek agrees : BINGO. And that's why it was "blank" on the page. ;)
    Last edited by mallen; March 17th, 2009 at 10:27 PM.

IMN logo majestic logo threadwatch logo seochat tools logo