resource mysql_connect ([ string $server [, string $username [, string $password [, bool $new_link [, int $client_flags ]]]]] )
<html>
<head>
<meta http-equiv="Content_Type" content="text/html' charset=utf-8">
<title>Create a mysql connection</title>
</head>
<body>
<?php
$link = mysql_connect("localhost", "root", "mypassword") or die ("Can not connect to mysql server!");
echo "Connect to mysql server OK!";
?>
</body>
</html>
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |