-
-
Save fumilab/25dbcf8924d0f22eddf8717708f86e4f to your computer and use it in GitHub Desktop.
PHP、データベースに接続する。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<php? | |
//データベースに接続する | |
$dsn='mysql:dbname=phpkiso;host=localhost;charset=utf8'; | |
$user='root'; | |
$password='root'; | |
$dbh=new PDO($dsn, $user, $password); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment