php简单的连接数据库
<?php
$conn=@mysql_connect("localhost","root","") or die ("no");
mysql_select_db("hpf",$conn);
mysql_query("set name 'GBK'");
?>
<?php
$conn=@mysql_connect("localhost","root","") or die ("no");
mysql_select_db("hpf",$conn);
mysql_query("set name 'GBK'");
?>