crazylegseddie Posted August 14, 2006 Share Posted August 14, 2006 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 coolthx Link to comment https://forums.phpfreaks.com/topic/17544-simple-linking/ Share on other sites More sharing options...
AndyB Posted August 14, 2006 Share Posted August 14, 2006 [code]echo "<a href='discs.php'>". $row['top_disc']. "</a>";[/code] Link to comment https://forums.phpfreaks.com/topic/17544-simple-linking/#findComment-74717 Share on other sites More sharing options...
crazylegseddie Posted August 14, 2006 Author Share Posted August 14, 2006 thank you Link to comment https://forums.phpfreaks.com/topic/17544-simple-linking/#findComment-74724 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.