global $phpbean; $mysql=new mysql("localhost","***","***","52site"); $phpbean->register('db',$mysql); unset($mysql); ?> 這段代碼主要是把MYSQL注冊到注冊器里面,關(guān)于注冊器的使用的原理,可以看我翻譯的兩篇文章。 然后新建一個mysqlController.class.php文件,代碼如下: <? /** * MVC演示...
www.dbjr.com.cn/article/93...htm 2025-5-20