Changeset 21 for trunk/inc/messages/sent.inc.php
- Timestamp:
- 08/12/05 20:59:53 (7 years ago)
- Files:
-
- 1 modified
-
trunk/inc/messages/sent.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/messages/sent.inc.php
r20 r21 32 32 33 33 list($first_item, $last_item) = $pager->getOffsetByPageId(); 34 $limit_ start = $first_item-1;35 $limit_ offset = $last_item-$limit_start;34 $limit_offset = $first_item-1; 35 $limit_length = $last_item-$limit_offset; 36 36 37 $messages_r = $db->query('SELECT id, id_mess, id_from, from_str, type, dest, subject, message, flag, date FROM message WHERE id_from=? AND box=? ORDER by date DESC LIMIT !,!', array($_SESSION['my_id'],'send', $limit_ start, $limit_offset) );37 $messages_r = $db->query('SELECT id, id_mess, id_from, from_str, type, dest, subject, message, flag, date FROM message WHERE id_from=? AND box=? ORDER by date DESC LIMIT !,!', array($_SESSION['my_id'],'send', $limit_offset, $limit_length) ); 38 38 39 39 $cache=array();
