Changeset 1309
- Timestamp:
- 02/05/07 15:56:41 (1 year ago)
- Files:
-
- feedmelinks/search.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/search.php
r1265 r1309 37 37 "SELECT * from links WHERE lcase(name) LIKE '%$searchTerm%' AND submitter='$sessionUserId' ORDER BY createDate DESC" 38 38 # this query needs to pull from the master query, but the column names are different... 39 : "SELECT * from links WHERE lcase(name) LIKE '%$searchTerm%' AND (isPrivate is NULL ORsubmitter = '$u') ORDER BY createDate DESC";39 : "SELECT * FROM links, linksUsers WHERE links.submitter = linksUsers.userid AND linksUsers.snuffed IS NULL AND lcase(links.name) LIKE '%$searchTerm%' AND (links.isPrivate is NULL OR links.submitter = '$u') ORDER BY createDate DESC"; 40 40 else if( $search_only == "users" ) 41 $qs = "SELECT * from linksUsers WHERE lcase(userid) LIKE '%$searchTerm%' ORDER BY userid;";41 $qs = "SELECT * from linksUsers WHERE lcase(userid) LIKE '%$searchTerm%' and snuffed is NULL ORDER BY userid;"; 42 42 else if( $search_only == "tags" ) 43 43 $qs = "SELECT * FROM linksGroups WHERE name LIKE '%$searchTerm%' AND (isPrivate IS NULL OR userid = '$u') ORDER BY name;";