<html>
<head><title>DB接続</title></head>
<body>
php
$conn = mysql_connect("ホスト名","ユーザ名","パスワード");
mysql_select_db("データベース名",$conn);
$res = mysql_query("SHOW TABLES",$conn);
if($res){
print("Success!!");
}
mysql_free_result($res);
?
</body>
</html>
成功なら「Success!!」と印字される.
