Changeset 458 for branches


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

Legend:

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

    r457 r458  
    223223     mysql_query("SET NAMES 'utf8'");
    224224       
    225 $pocet = mysql_query(mysql_num_rows("SELECT id FROM articles $where"));
     225$pocet = mysql_query(mysql_num_rows("SELECT id FROM articles"));
    226226$offset = ($_GET["offset"] ? $_GET["offset"] : $pocet);
     227
     228if ($pocet != 0)
     229        {
    227230$result = mysql_query("SELECT * FROM articles $where ORDER BY date DESC, id DESC LIMIT $limit OFFSET " . ($pocet - $offset));
    228 if ($pocet != 0)
    229         {
    230231while($row = mysql_fetch_array($result)){
    231232 switch ($row["category"])
Note: See TracChangeset for help on using the changeset viewer.