include'init.php'; $_REQUEST['id']=intval($_REQUEST['id']); $xx=mysql_query("select * from article where articleid=$_REQUEST[id] and chk=1"); $xxx=mysql_num_rows($xx); $locname=mysql_result($xx,0,'title'); $locurl=urlencode($_SERVER['REQUEST_URI']); $piclink=mysql_result($xx,0,'smallpic'); $locgroup=5; include'global.php'; $article_title=query_first("select * from article where articleid=$_REQUEST[id]"); $title=$article_title['title']; $property=$article_title['smallpic']; $urlr='show'.$article_title['articleid']; include'header.php'; $Userid= $user[userid]; $Username=$user[username]; if ($xxx==0) { echo " \n"; } else { $edd=query_first("select * from eddnews"); $article_row=query_first("select * from article where articleid=$_REQUEST[id]"); $setting['title']." - ".$article_row['title']; $rr=mysql_query("select * from `article` where `articleid`=$_REQUEST[id]"); while($row88=mysql_fetch_array($rr)) {$topview=$row88[topview] + 1 ; $top=mysql_query("select * from `comment` where `articleid`='$_REQUEST[id]'"); $topcoment=mysql_num_rows($top) ; } $ins=mysql_query("update `article` set `topview`='$topview' where `articleid`='$_REQUEST[id]'"); if (!$_REQUEST['id']) { header("location:.");exit; } function BlockTitle($id) { $sql=mysql_query("select * from `block` where `id`='$id'"); $row=mysql_fetch_array($sql); return $row[title]; } ?>