PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
conf.php(配置文件)
'DB_Demo' => 'mysql://root:passwork@localhost/demo',
function.php(函数)
function M2($name) { return M($name,'cms_',C('DB_Demo')); }
使用方法
$result = M2('demo')->find();
转载请注明:谷谷点程序 » thinkphp 多个数据库
'DB_Demo' => 'mysql://root:passwork@localhost/demo',
function M2($name) { return M($name,'cms_',C('DB_Demo')); }
$result = M2('demo')->find();
转载请注明:谷谷点程序 » thinkphp 多个数据库