DiscuzX2 取一条数据

 

方法:DB::fetch_first();

 

 

 

if($_GET['username']) {
	$member = DB::fetch_first("SELECT uid FROM ".DB::table('common_member')." WHERE username='$_GET[username]' LIMIT 1");
	if(empty($member)) {
		showmessage('space_does_not_exist');
	}
	$uid = $member['uid'];
}
 

 

你可能感兴趣的:(DiscuzX2)