Parašė AgS· 2010 Bir. 16 20:06:00
#7
šita trink:
if ($c_rows > 10) {
echo "<div style='text-align:center;margin-bottom:5px;'>".makecommentnav($_GET['c_start'], 10, $c_rows, 3, $clink."&")."</div>\n";
}
šį:
$result = dbquery(
"SELECT tcm.*, tcu.user_name, tcu.user_status FROM ".DB_COMMENTS." tcm
LEFT JOIN ".DB_USERS." tcu ON tcm.comment_name=tcu.user_id
WHERE comment_item_id='$cid' AND comment_type='$ctype' AND comment_hidden='0'
ORDER BY comment_datestamp ASC LIMIT ".$_GET['c_start'].",10"
);
keisk į:
$result = dbquery(
"SELECT tcm.*, tcu.user_name, tcu.user_status FROM ".DB_COMMENTS." tcm
LEFT JOIN ".DB_USERS." tcu ON tcm.comment_name=tcu.user_id
WHERE comment_item_id='$cid' AND comment_type='$ctype' AND comment_hidden='0'
ORDER BY comment_datestamp ASC"
);
dabar nebebus puslapių. Turėtu veikt
Redagavo AgS· 2010 Bir. 16 20:06:18