Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > references.php
<%
	# $Id: references.php,v 1.3 2005/01/02 21:07:03 hirokai Exp $
	include_once( "modules/utils.inc.php" );

%>

<title> Feed Me Links : SHOW YOUR WORK! </title>

<% 
	include( "$modules/header.inc.php" ); 
%>

<h1> References.</h1>
<br/>
<p/>

<div style="line-height: 1.5em;">
<%
	$max = 30;
	$qs = "SELECT referer, userid, linkID, timestamp FROM linksReferers ORDER BY timestamp DESC LIMIT $max;";
	mysql_connect();
	mysql_selectdb( getDBName() );
	$q = mysql_query( $qs );
	if( $q ) 
		$numRows = mysql_num_rows($q);
	if( $numRows ) {
		echo "<h4>Last $max Incoming / Referrering Pages:</h4>";
	}
	while( $i < $numRows ) {
		$referer = urldecode( mysql_result($q, $i, "referer"));
		$user = urldecode( mysql_result($q, $i, "userid"));
		$linkID = urldecode( mysql_result($q, $i, "linkID"));
%>
<a href="http://<%= $referer %>"><%= $referer %></a> -&gt; <%= makeUserLink( $user ) %>'s 
<%= makeLinkOut( $linkID ) %>
<%= makePermaLink( $linkID ) %>
<br />

<%
		$i++;
	}
%>
</div>

<br />
<div width="650">
<% include( "$modules/footer.inc.php" ); %>
</div>
Return current item: FeedMeLinks, Social BookmarkingSince2002