Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6110589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:31:59+00:00 2026-05-23T14:31:59+00:00

The number of returned results is 2 which is correct and it comes up

  • 0

The number of returned results is 2 which is correct and it comes up with 2 for the number of pages which is also correct but instead of showing 1 on the first page it shows both records. I’m not sure hwy the tablesorter.pager plugin is doing that.

<?php
  session_start();
  require("../inc/dbconfig.php");
  require("../inc/global_functions.php");
  require("../inc/variables.php");

  // find out how many rows are in the table
  $query = "SELECT CONCAT_WS(' ',firstName,lastName) AS name, username, emailAddress, userID FROM manager_users WHERE statusID != 4";
  $result = mysqli_query($dbc,$query);
  $rows = mysqli_num_rows($result);
$itemsPerPage = 1;
  $totalPages = ceil($rows/$itemsPerPage);

  $fileName = basename($_SERVER[PHP_SELF]);
  $pageName = "User Accounts";
  $userData = $_SESSION['user_data'];
  $userID = $userData['userID'];
  ?>

  <script type="text/javascript">
  $(document).ready(function() {

      $('#usersPageList').tablesorter().tablesorterPager({sortlist: [0,0], container:$('#usersPageList .pagination'),cssPageLinks:'a.pageLink'});

      $('a.bt_green').click(function(e) {
          e.preventDefault();
          $('div.right_content').load('forms/addnew/' + $(this).attr('id'));
      });

      $('.ask').jConfirmAction();    

  });
  </script>

  <h2>User Accounts</h2>

  <table id="usersPageList" class="rounded-corner">

      <thead>

          <tr>

              <th scope="col" class="rounded-first"></th>
              <th scope="col" class="rounded">Name</th>
              <th scope="col" class="rounded">Email Address</th>
              <th scope="col" class="rounded">Username</th>
              <th scope="col" class="rounded">Edit</th>
              <th scope="col" class="rounded-last">Delete</th>

          </tr>

      </thead>

      <tfoot>

          <tr>

              <td colspan="5" class="rounded-foot-left"><em>Displays all of the registered and verified users!</em></td>
              <td class="rounded-foot-right">&nbsp;</td>

          </tr>

      </tfoot>

      <tbody>

          <?php
          while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
              echo "<tr>";
                  echo "<td><input type=\"checkbox\" name=\"\" /></td>";
                  echo "<td>".$row['name']."</td>";
                  echo "<td>".$row['emailAddress']."</td>";
                  echo "<td>".$row['username']."</td>";
                  echo "<td><a href=\"#\"><img src=\"images/user_edit.png\" alt=\"\" title=\"\" border=\"0\" /></a></td>";
                  echo "<td>";
                  if (($row['userID'] !== '10000') && ($row['userID'] !== $userID)){
                      echo "<a href=\"#\" class=\"ask\"><img src=\"images/trash.png\" class=\"delete\" alt=\"\" title=\"\" border=\"0\" id=\"".$row['userID']."\" /></a>";
                  }
                  echo "</td>";
              echo "</tr>";
          }
          ?>

      </tbody>

  </table>

  <?php
  addRemove($fileName,$pageName);
  pagination($totalPages);
  ?>
  <input type="hidden" name="myhiddenPageToken" id="myhiddenPageToken" value="useraccounts" />
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:31:59+00:00Added an answer on May 23, 2026 at 2:31 pm

    Maybe I’m misunderstanding what you want, but I think you want just one record at a time to show on the page? I have no idea why you would do that, but you can use the pager’s size option:

    $("table").tablesorter({
        widthFixed: true,
        widgets: ['zebra']
    }).tablesorterPager({
        container: $("#pager"),
        size: 1 // only show one record
    });
    

    Also, if you are using the select to change the number of records showing, you’ll need to include a “1” (demo).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to count the number of results returned by the query.I know there
How can I limit the number of rows returned using activity.managedQuery()? I am pretty
My question is how to get the number of rows returned by a query
Is there a constraint on the number of fields returned for a document in
Is there a way to limit the number of rows returned from content provider?
What I want to do is count the number of rows returned by a
Question: write a program which first defines functions minFromList(list) and maxFromList(list). Program should initialize
Have a simple page that pulls results from MySQL and displays them in a
I'm working on a parts database, where every part number can also be an
Im trying to produce a paged table of results which is contained in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.