日期:2014-05-17 浏览次数:20437 次
<?php $con = mysql_connect("localhost"); if (!$con) { die('Could not connect: ' . mysql_errno()); } else { echo "success" . "<br />"; } if (mysql_query("CREATE DATABASE hello", $con)) { echo "Database created"; } else { echo "ERROR"; } mysql_close($con); ?>