php简单的连接数据库

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

?

>


posted @ 2017-06-08 11:58  yxysuanfa  阅读(190)  评论(0编辑  收藏  举报