Jump to content


Photo

Simple Linking


  • Please log in to reply
2 replies to this topic

#1 crazylegseddie

crazylegseddie
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 14 August 2006 - 07:44 PM

Can anyone help me and tell me how to turn this $row into a url.
<?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'];
			?>

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

Any help will be cool

thx

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 14 August 2006 - 07:49 PM


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

Legend has it that reading the manual never killed anyone.
My site

#3 crazylegseddie

crazylegseddie
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 14 August 2006 - 08:07 PM

thank you




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users