hehe..em lục ra đc code của anh để gán vào
Và đây là k
==========================================================
$new = mysql_query("select start_date,views, posts, starter_name, description, title, post,tid FROM ibf_topics, ibf_posts where topic_id = tid and ibf_topics.forum_id = ibf_posts.forum_id and ibf_topics.forum_id = 7 and ibf_posts.new_topic = 1 ORDER BY start_date DESC LIMIT 0, 20");
while ($new1 = mysql_fetch_array($new)){
++$newdlnbsp;
$bwText = $new1[post];
$bwText = trim(stripslashes($bwText));
$maxTextLength=300;
$aspace=" ";
if(strlen($bwText) > $maxTextLength ) {
$bwText = substr(trim($bwText),0,$maxTextLength);
$bwText = substr($bwText,0,strlen($bwText)-strpos(strrev($bwText),$aspace));
$bwText = $bwText.'...';
}
$topic[bw_post] = $topic[start_date]."\n".$bwText;
News1.= "
$newdl[title] Gửi bởi : $new1[starter_name] | Sáng tác : $new1[description] | | $topic[bw_post] | Số lần xem : $newdl[views] - Bình luận : $new1[posts] | |
";
}
?>
====================================================
Tuy nhiên,bây giờ em lại muốn phân trang ra nhưng lại không biết làm sao...test bao nhiêu code rồi mà hok được..đều không phù hợp với code này...anh BW có thể giúp em hok...thanks anh nhìu ^..^
Bài viết đã chỉnh sửa bởi donline1: 19 April 2010 - 08:51 AM