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/querymc.php

    r8180 r9498  
    1010                $groups++;
    1111
    12         $query0 = "SELECT ";
     12        $query0 = "SELECT SQL_CALC_FOUND_ROWS ";
    1313
    1414        if ($groups>0)
     
    239239
    240240        $result0 = mysql_query($query0, $db_id);
     241        $result1 = mysql_query("SELECT FOUND_ROWS()", $db_id);
    241242
    242243        if ($result0)
    243244        {
    244245            if ($html=="1")
    245                 PrintMagicTable($result0, $alias, $rightalign, "", "", "", "", $_GET);
     246                PrintMagicTable($result0, $alias, $rightalign, "", "", "", $result1);
    246247            else
    247248                PrintText($result0);
    248249
    249250            mysql_free_result($result0);
     251            mysql_free_result($result1);
    250252        }
    251253        mysql_close($db_id);
Note: See TracChangeset for help on using the changeset viewer.