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? Link to comment https://forums.phpfreaks.com/topic/194377-help-with-query-result/ 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>" . Link to comment https://forums.phpfreaks.com/topic/194377-help-with-query-result/#findComment-1022503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.