Ignore:
Timestamp:
08/20/09 14:43:59 (15 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/printtable.php

    r8249 r9498  
    2828
    2929        $fromtable=$_GET["fTable"];
    30         $query0  = "SELECT * FROM " . $fromtable;
     30        $query0  = "SELECT SQL_CALC_FOUND_ROWS * FROM " . $fromtable;
    3131        if (!empty($_GET["fSortBy"]))
    3232        {
     
    3939
    4040        $result0 = mysql_query($query0, $db_id);
     41        $result1 = mysql_query("SELECT FOUND_ROWS()", $db_id);
    4142
    4243        if ($result0)
     
    5051                (
    5152                );
    52                 PrintMagicTable($result0, $alias, $rightalign, "", "", "", "", $_GET);
     53                PrintMagicTable($result0, $alias, $rightalign, "", "", "", $result1);
    5354            }
    5455            else
     
    5657
    5758            mysql_free_result($result0);
     59            mysql_free_result($result1);
    5860        }
    5961        mysql_close($db_id);
Note: See TracChangeset for help on using the changeset viewer.