gettotal($totalquery); $query="select gid,isprivate,uid,uname,ip,addtime,gbtext,retext from {$dbtbpre}enewsmembergbook where userid='$userid'"; $query.=" order by gid desc limit $offset,$line"; $sql=$empire->query($query); $returnpage=page1($num,$line,$page_line,$start,$page,$search); require('template/'.$spacestyle.'/gbook.temp.php'); db_close(); $empire=null; ?>