Changeset 1334 for feedmelinks/testing/ajax-test.php
- Timestamp:
- 02/16/07 14:17:21 (2 years ago)
- Files:
-
- feedmelinks/testing/ajax-test.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/testing/ajax-test.php
r852 r1334 1 < %1 <?php 2 2 include_once( "../modules/utils.inc.php" ); 3 3 require_once( "$modules/xajax.inc.php" ); … … 24 24 $u == $user ? $auth = 1 : $auth = 0; 25 25 $u = $user ? $user : $u; 26 $qs_max = "SELECT count(*) as num_links, ID as catID, name FROM linksGroups, linksCategoriesXRef WHERE linksGroups.ID = linksCategoriesXRef.catID AND linksGroups.userid = '$u' GROUP BY name ORDER BY num_links DESC LIMIT 1;";26 $qs_max = "SELECT count(*) as num_links, ID as tagID, name FROM tags, links_tags_xref WHERE tags.ID = links_tags_xref.tagID AND tags.userid = '$u' GROUP BY name ORDER BY num_links DESC LIMIT 1;"; 27 27 28 $qs = "SELECT count(*) as num_links, ID as catID, name FROM linksGroups, linksCategoriesXRef WHERE linksGroups.ID = linksCategoriesXRef.catID AND linksGroups.userid = '$u' GROUP BY name ORDER BY name ASC;";28 $qs = "SELECT count(*) as num_links, ID as tagID, name FROM tags, links_tags_xref WHERE tags.ID = links_tags_xref.tagID AND tags.userid = '$u' GROUP BY name ORDER BY name ASC;"; 29 29 30 30 $con = mysql_connect(); … … 47 47 $name = makePrettyFolderName( urldecode( mysql_result($q, $i, "name"))); 48 48 if( $auth || isPublic( mysql_result($q, $i, "name"))) { 49 $id = mysql_result($q, $i, " catID");49 $id = mysql_result($q, $i, "tagID"); 50 50 ob_start(); 51 %>51 ?> 52 52 <a rel="tag" class="f<%= $size %>" href="/f/<%= $id %>"><nobr><%= $name %></nobr></a> 53 53 <%