get_one("select count(*) as num from pw_article where CategoryId=$CategoryId and Published=1"); $totalrow=$row[num]; $pages=intval($totalrow/$limit); if($totalrow%$limit) $pages++; if($page>=$pages) $page=$pages-1; $start=$page*$limit; $article=getarticle($id); function getarticle($id){ global $db,$admin_name; $article=""; $sql="select * from pw_article where ArticleId=$id"; if($admin_name=="") $sql.=" and Published=1"; $rs=$db->get_one($sql); if($rs){ $updatesql="update pw_article set Click=Click+1 where ArticleId=$id"; $db->query($updatesql); $article[Title]=$rs[Title]; $article[AddTime]=$rs[AddTime]; $article[Clicked]=$rs[Click]; $article[UserName]=$rs[UserName]; $article[URL]=$rs[URL]; if($rs[isHtml]) $article[Content]=stripslashes($rs[Content]); else { $article[Content]=str_replace(" ","  ",nl2br(htmlspecialchars(stripslashes($rs[Content])))); } $article[Source]=$rs[Source]; $article[Author]=$rs[Author]; return $article; }else{ die("Sorry,Your request Article $id is not exist!\n
此文章编号不存在!"); } } ?> CMO FELLOWSHIP CLUB | 市场营销总监联谊会俱乐部

".$article[Title]."
"; $zgcontent.="

\"\" 发布时间:". substr($article[AddTime],0,10)."

"; $zgtmpstr='
'; $article[Content]=str_replace("

",$zgtmpstr,$article[Content]); $article[Content]=str_replace("

","

",$article[Content]); $zgcontent.=$article[Content]; echo $zgcontent; ?>

Quotes: 将者,智、信、仁、勇、严也。 -- 孙武