Jump to content

Archived

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

crazylegseddie

Simple Linking

Recommended Posts

Can anyone help me and tell me how to turn this $row into a url.
[code]
<?php
  $result = mysql_query('SELECT top_disc FROM tbl_top20 WHERE top_id=1') or exit(mysql_error());
$row = mysql_fetch_assoc($result);
echo $row['top_disc'];
?>
[/code]

I need the $row['top_disc]' to link to 'discs.php'.

Any help will be cool

thx

Share this post


Link to post
Share on other sites

[code]echo "<a href='discs.php'>". $row['top_disc']. "</a>";[/code]

Share this post


Link to post
Share on other sites

×

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.