Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > testing/view-folder.php
<%
	include_once( "../modules/utils.inc.php" );
	$tok =  $authenticated = $_COOKIE["c_pass_token"];
	$u   =  $sessionUserId = $_COOKIE["c_uid"];
	$cat = $cat ? $cat : 273;
%>
<form>
viewing category: <input name="cat" value="<%= $cat %>" size="3" /> (<%= getNameForFolder( $cat ) %>) :
</form>
<pre><%
	$con = mysql_connect();
	mysql_selectdb( getDBName() );

	$qs = "SELECT * FROM links AS l, linksCategoriesXRef AS x WHERE l.ID = x.linkID AND x.catID = $cat;";
	$q = mysql_query( $qs );
	if( $q )
		$numRows = mysql_num_rows($q);
	for( $i = 0; $i < $numRows; $i++ ) {
		$id = mysql_result($q, $i, "ID");
%>

<%= makeLinkOut( $id ) %>&nbsp;<%= makePermaLink( $id ) %>
<%
	}
%>
Return current item: FeedMeLinks, Social BookmarkingSince2002