Skip to content

Commit

Permalink
make the URL an actual href
Browse files Browse the repository at this point in the history
git-svn-id: http://httparchive.googlecode.com/svn/trunk@1170 fc7d47d3-c008-acd5-f51f-d19787b8a02f
  • Loading branch information
stevesoudersorg@gmail.com committed Mar 19, 2013
1 parent 7c86d94 commit b52b0b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion urls.php
Expand Up @@ -80,7 +80,8 @@
$query = "select rank, urlOrig, urlFixed from $gUrlsTable where rank >= $gStart and rank <= $gEnd order by rank asc;";
$result = doQuery($query);
while ($row = mysql_fetch_assoc($result)) {
echo ( $gbNums ? $row['rank'] . "," : "" ) . ( $row['urlFixed'] ? $row['urlFixed'] : $row['urlOrig'] ) . "\n";
$url = ( $row['urlFixed'] ? $row['urlFixed'] : $row['urlOrig'] );
echo ( $gbNums ? $row['rank'] . "," : "" ) . "<a href='$url'>$url</a>\n";
}
mysql_free_result($result);
?>
Expand Down

0 comments on commit b52b0b3

Please sign in to comment.