代码'''
$ test连接= mysql_connect('localhost','用户名','密码'); '错误线'
如果(!$ testConnection){
die('Error:'。mysql_error());
}
echo'数据库连接正常!']]
mysql_close($ testConnection)?>'''
我是PHP新手,如何解决此错误,出现连接错误
代码'''$ test连接= mysql_connect('localhost','用户名','密码'); '错误线'if(!$ testConnection){die('Error:'。mysql_error());回显“数据库连接正常!”; ...
更改此