function count_hit($id){ global $db; $sql="update {$this->tablename} set article_hitcount=article_hitcount+1 where article_id=".$id; $db->query($sql); $rt=$db->search("{$this->tablename}","article_hitcount","article_id=".$id,2); echo $rt['article_hitcount'];