Changeset 458 for branches/beta/inc
- Timestamp:
- Mar 1, 2009, 3:04:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/inc/html.php
r457 r458 223 223 mysql_query("SET NAMES 'utf8'"); 224 224 225 $pocet = mysql_query(mysql_num_rows("SELECT id FROM articles $where"));225 $pocet = mysql_query(mysql_num_rows("SELECT id FROM articles")); 226 226 $offset = ($_GET["offset"] ? $_GET["offset"] : $pocet); 227 228 if ($pocet != 0) 229 { 227 230 $result = mysql_query("SELECT * FROM articles $where ORDER BY date DESC, id DESC LIMIT $limit OFFSET " . ($pocet - $offset)); 228 if ($pocet != 0)229 {230 231 while($row = mysql_fetch_array($result)){ 231 232 switch ($row["category"])
Note:
See TracChangeset
for help on using the changeset viewer.