Text into a url

From: Date: Sat, 13 Sep 2003 22:09:24 +0000
Subject: Text into a url
Groups: php.general 
Request: Send a blank email to php-general+get-162527@lists.php.net to get a copy of this message
Hi I am havening a problem retrieving url from a mysql database. I have the url's stored as text and am using the following code to retrieve them $query = "SELECT name,url FROM clubs WHERE url>'' ORDER BY name"; $result = @mysql_query($query) or die ("Query failed"); if (mysql_num_rows($result) == 0) { print "No Club Links Found."; } else { while ($row = mysql_fetch_assoc($result)) { print $row["name"] . "<A HREF= ".$row['url'].">"; This seems to work except the url refers to the previous name on the list produced with the first name as a blank url. Can anybody help Thanks

« previous php.general (#162527) next »