Jump to content

Help with query result.


monkeybidz

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.