public function hook_db(){//MYSQL數據庫-跨庫操作
$oldsql = $this->set_db_config('127.0.0.1','xinxiuvip','xinxiuvip','8888888');//鏈接外部數據庫
$str = DB::fetch_all('SELECT * FROM %t WHERE uid=%d',array('common_member',10000));//執行數據庫操作
$this->exit_db($oldsql);//退出外部數據庫,返回本站數據庫
exit($str);
}
歡迎光臨 新秀網絡驗證系統 (http://www.5566wy.com/) | Powered by Discuz! X3.5 |