paparts Posted June 18, 2008 Share Posted June 18, 2008 Hi tnx for previous help u gave me an idea. I have another problem and that is i want to get individual entry in the MySQL database these entries are urls and i want to get it individually and when displayed on the browser its seen as a link. tnx Link to comment https://forums.phpfreaks.com/topic/110738-php-query/ Share on other sites More sharing options...
trq Posted June 18, 2008 Share Posted June 18, 2008 A simple example. <?php // connect to db $sql = "SELECT url,sitename FROM links"; if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { while ($row = mysql_fetch_assoc($result)) { echo "<a href='{$row['url']}'>{$row['sitename']}</a><br />"; } } } ?> Link to comment https://forums.phpfreaks.com/topic/110738-php-query/#findComment-568114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.