bool mysql_select_db ( string $database_name [, resource $ link_identifier ] )
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<?php
$link = mysql_connect("localhost", "root", "mypassword") or die("Can not connect to database<br>".mysql_error());
$db_selected = mysql_select_db("pw87", $link)
or die ("Can not select pw87 database<br>".mysql_error());
echo "select pw87 OK<br>";
mysql_close($link);
?>
</body>
</html>
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |