$Thread = S("Thread");
$pageid=intval(isset($_GET['HY_URL'][3]) ? $_GET['HY_URL'][3] : 1) or $pageid=1;
$thread_data = $Thread->select('*',array(
'uid'=>$id,
"LIMIT" => array(($pageid-1) * 10, 10),
"ORDER" => "id DESC"
));
if(empty($thread_data))
$thread_data=array();
foreach ($thread_data as &$v) {
$v['atime'] = $v['atime'];
$v['avatar'] =$data['avatar'];
$v['user'] = $data['user'];
}
|