gli Posted April 18, 2008 Share Posted April 18, 2008 <?php require_once("databasec.php"); ?> <?php $query = "SELECT * FROM users"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ echo $row['username']. " - ". $row['country']; echo "<br />"; } ?> hi! i need to make link for $row['username'] but link like profile.php?user=$row['username'] Link to comment https://forums.phpfreaks.com/topic/101757-solved-problem-with-links/ Share on other sites More sharing options...
rhodesa Posted April 18, 2008 Share Posted April 18, 2008 <?php require_once("databasec.php"); ?> <?php $query = "SELECT * FROM users"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ echo "<a href='profile.php?user={$row['username']}'>{$row['username']}</a> - {$row['country']}<br />"; } ?> Link to comment https://forums.phpfreaks.com/topic/101757-solved-problem-with-links/#findComment-520627 Share on other sites More sharing options...
gli Posted April 18, 2008 Author Share Posted April 18, 2008 thnx Link to comment https://forums.phpfreaks.com/topic/101757-solved-problem-with-links/#findComment-520629 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.