Home >Backend Development >PHP Tutorial >php简单的连接数据库

php简单的连接数据库

WBOY
WBOYOriginal
2016-06-23 13:45:02965browse

<?php $conn=@mysql_connect("localhost","root","") or die ("no"); mysql_select_db("hpf",$conn); mysql_query("set name 'GBK'");?>

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