monkeybidz Posted March 6, 2010 Share Posted March 6, 2010 Ijust added this query to my site: $query = "SELECT url, title, description FROM enginelinks"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "Domain :{$row['url']} <br>" . "Title : {$row['title']} <br>" . "Description : {$row['description']} <br><br>"; } How do I get the url row result to show as a link. For example, the current result for the echoed Domain returns http://www.yoursite.com, but I need it to be an actual link to that site. Any ideas? Quote Link to comment Share on other sites More sharing options...
monkeytooth Posted March 6, 2010 Share Posted March 6, 2010 the same way your adding extra stuff to the results the "Domain:" part for example. Wrap the HTML into the php the same way you would the text. example: echo "Domain :<a href=\"{$row['url']}\" target=\"_blank\">{$row['url']}</a><br>" . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.