title: jquery tablesorter not sorting
body: <p>hello
  i am stuck with jquery tablesorter:
  <a href="http://tablesorter.com/docs/index.html#Examples" rel="nofollow">http://tablesorter.com/docs/index.html#Examples</a></p>
  
  <p>and would be grateful if some jquery guru could check my code to see where i am going wrong. instead of displaying 10 records per page it is displaying all records and also when i try to sort it does nothing. in addition to that, there are no zebra stripes appearing. all libraies are loaded and there are no errors in firebug. many thanks for your help.</p>
  
  <pre><code>&lt;?php
  $q=$_GET["q"];
  
  $con = mysql_connect('localhost', 'root', '');
  if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }
  
  mysql_select_db("sample", $con);
  
  $sql="SELECT * FROM logger_log WHERE idusr_log = '".$q."' order by datein_log desc";
  
  $result = mysql_query($sql);
  
  echo "&lt;table id=\"userlog\" class=\"tablesorter\"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
  &lt;th align=\"left\"&gt;Ip Address&lt;/th&gt;
  &lt;th align=\"left\"&gt;Date In&lt;/th&gt;
  &lt;th align=\"left\"&gt;Date Out&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;";
  
  while($row = mysql_fetch_array($result))
    {
    echo "&lt;tbody&gt;";
    echo "&lt;tr&gt;";
    echo "&lt;td&gt;" . $row['ip_log'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . date('d/m/Y H:i:s',strtotime($row['datein_log'])) . "&lt;/td&gt;";
    echo "&lt;td&gt;" . date('d/m/Y H:i:s',strtotime($row['dateout_log'])) . "&lt;/td&gt;";
    echo "&lt;/tr&gt;";
    echo"&lt;/tbody&gt;";
    }
  echo "&lt;/table&gt;";
  
  
  mysql_close($con);
  ?&gt;
  &lt;div id="pager" class="pager"&gt;
      &lt;form&gt;
          &lt;img src="css/blue/first.png" class="first"/&gt;
          &lt;img src="css/blue/prev.png" class="prev"/&gt;
          &lt;input type="text" class="pagedisplay"/&gt;
          &lt;img src="css/blue/next.png" class="next"/&gt;
          &lt;img src="css/blue/last.png" class="last"/&gt;
          &lt;select class="pagesize"&gt;
              &lt;option selected="selected"  value="10"&gt;10&lt;/option&gt;
              &lt;option value="20"&gt;20&lt;/option&gt;
              &lt;option value="30"&gt;30&lt;/option&gt;
              &lt;option  value="40"&gt;40&lt;/option&gt;
          &lt;/select&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript" src="js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.tablesorter.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.tablesorter.pager.js"&gt;&lt;/script&gt;
  &lt;link href="css/blue/style.css" rel="stylesheet" type="text/css" /&gt;
          &lt;script&gt;
          $(document).ready(function()     
          {   
              $("#userlog")
              .tablesorter({widthFixed: true, widgets: ['zebra']})     
              .tablesorterPager({container: $("#pager")});     
  
          } );
          &lt;/script&gt;
  </code></pre>