Home >Backend Development >PHP Tutorial >php-数据库如何正确的连接以及关闭(PHP)

php-数据库如何正确的连接以及关闭(PHP)

WBOY
WBOYOriginal
2016-06-02 11:32:561077browse

php网页数据库

我在网页的头部写了
这里是member.php的代码

FileName="Connection_php_mysql.htm"

Type="MYSQL"

HTTP="true"

$hostname_member = "";
$database_member = "";
$username_member = "";
$password_member = ";
$member = mysql_connect($hostname_member, $username_member, $password_member) or trigger_error(mysql_error(),E_USER_ERROR);

?>这样写经常造成流量异常,怎么改写

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn