摘要: PHP连接MYSQL数据库$username=your_name;$userpass=your_pass;$dbhost=localhost;$dbdatabase=your_database;//生成一个连接$db_connect=mysql_connect($dbhost,$username,$userpass) or die("Unable to connect to the MySQL!");//选择一个需要操作的数据库mysql_select_db($dbdatabase,$db_connect);//执行MySQL语句$result=mysql_query(&q 阅读全文
posted @ 2013-06-20 22:35 Joy Ho 阅读(176) 评论(0) 推荐(0) 编辑