sorry if the title didnt make sence but what i want to do is in html you make a link and have a name <a href="http://www.link.php">LINK NAME</a> HTML: but how do i do that in php i am trying to get the url that comes from the database to be a link of the title echo $row['article_name']; echo "</td></tr><tr><td>"; echo $row['url']; PHP: so i want the ['url'] to be a link and the ['article name'] to be the text over it.
echo "<a href=\"". $row['url'] ."\">". $row['article_name'] ."</a>"; Code (markup): The above should work *I think*. I'm still getting to grips with it myself, but I believe that's correct.
This is correct. I usually use alrternate quotes to do away with those ugly looking slashes though: echo '<a href="'. $row['url'] .'">'. $row['article_name'] .'</a>'; Code (markup):