Changeset 9498 for trunk/MagicSoft/Mars/datacenter/db/printtable.php
- Timestamp:
- 08/20/09 14:43:59 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/printtable.php
r8249 r9498 28 28 29 29 $fromtable=$_GET["fTable"]; 30 $query0 = "SELECT * FROM " . $fromtable;30 $query0 = "SELECT SQL_CALC_FOUND_ROWS * FROM " . $fromtable; 31 31 if (!empty($_GET["fSortBy"])) 32 32 { … … 39 39 40 40 $result0 = mysql_query($query0, $db_id); 41 $result1 = mysql_query("SELECT FOUND_ROWS()", $db_id); 41 42 42 43 if ($result0) … … 50 51 ( 51 52 ); 52 PrintMagicTable($result0, $alias, $rightalign, "", "", "", "", $_GET);53 PrintMagicTable($result0, $alias, $rightalign, "", "", "", $result1); 53 54 } 54 55 else … … 56 57 57 58 mysql_free_result($result0); 59 mysql_free_result($result1); 58 60 } 59 61 mysql_close($db_id);
Note:
See TracChangeset
for help on using the changeset viewer.