标签:
<?php $con = mysql_connect("localhost", "root", "123456"); if(!$con) { die(‘Could not connect: ‘ . mysql_error()); } else echo "Open mysql db success<br/>"; mysql_close($con); ?>
php连接mysql数据库
原文地址:http://www.cnblogs.com/joeblackzqq/p/4482846.html