21,886
社区成员
发帖
与我相关
我的任务
分享
class DB
{
function table($table) {
return DB::_execute('table_name', $table);
}
function _execute($cmd , $arg1 = '', $arg2 = '') {
static $db;
if(empty($db)) $db = & DB::object();
$res = $db->$cmd($arg1, $arg2);
return $res;
}
}