# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_conn = "127.0.0.1";
$database_conn = "test";
$username_conn = "root";
$password_conn = "root";
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR);
?>
E:\myweb\test\php\consql.php on line 11 11行的代码是什么
代码没错,只是没有加载php_mysql.dll这个extension
修改php.ini后要重启apache才行,不然你修改的效果不会显示出来的