1、將php安裝目錄下的php_mysql.dll和MySQL安裝目錄下的libmysql.dll文件拷貝至c:/windows/system32中;
2、配置php.ini
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
1、login.php頁面
login page
select_db("db_test"); //mysql_query("set name 'gb2312'"); $conn->set_charset("utf8"); ?>