Changeset 457 for branches/beta/inc/html.php
- Timestamp:
- Mar 1, 2009, 3:02:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/inc/html.php
r456 r457 223 223 mysql_query("SET NAMES 'utf8'"); 224 224 225 $pocet = mysql_ result(mysql_query("SELECT COUNT(*) FROM articles $where"), 0);225 $pocet = mysql_query(mysql_num_rows("SELECT id FROM articles $where")); 226 226 $offset = ($_GET["offset"] ? $_GET["offset"] : $pocet); 227 227 $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.