Changeset 520
- Timestamp:
- 10/19/12 16:18:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/search.cgi
r517 r520 315 315 # Creates appropriate SQL to run the search and display the results 316 316 # with queryResults() 317 sub viewBy ($$){317 sub viewBy { 318 318 my ($category,$query) = @_; 319 319 … … 445 445 # Display search queries based on the passed SQL. 446 446 # Takes SQL, page number (for multipage search results), and a total count. 447 sub queryResults ($$$){447 sub queryResults { 448 448 my ($sql, $pageNo, $rowCount) = @_; 449 449 my $offset = 0; … … 529 529 # Return count of rows to be returned in a "real" query 530 530 # with the passed SQL statement 531 sub countRows ($){531 sub countRows { 532 532 # Note that the "as foo" is required 533 533 my $sth = $ip_dbh->prepare("select count(*) from ($_[0]) as foo");
Note:
See TracChangeset
for help on using the changeset viewer.