Changeset 457


Ignore:
Timestamp:
Mar 1, 2009, 3:02:04 PM (16 years ago)
Author:
amun
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/inc/html.php

    r456 r457  
    223223     mysql_query("SET NAMES 'utf8'");
    224224       
    225 $pocet = mysql_result(mysql_query("SELECT COUNT(*) FROM articles $where"), 0);
     225$pocet = mysql_query(mysql_num_rows("SELECT id FROM articles $where"));
    226226$offset = ($_GET["offset"] ? $_GET["offset"] : $pocet);
    227227$result = mysql_query("SELECT * FROM articles $where ORDER BY date DESC, id DESC LIMIT $limit OFFSET " . ($pocet - $offset));
Note: See TracChangeset for help on using the changeset viewer.