Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Created December 25, 2018 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YumaInaura/3f808040162140cfed2f2dac0c735dee to your computer and use it in GitHub Desktop.
Save YumaInaura/3f808040162140cfed2f2dac0c735dee to your computer and use it in GitHub Desktop.
mysqliとは?mysqlとの違いは? PHP を @kentyama さんの記事に学びたい Rubyist ref: https://qiita.com/YumaInaura/items/69078a4328d8a7f88c8b
//データベースの接続と選択
$mysqli = new mysqli($host, $username, $password, $dbname);
if ($mysqli->connect_error) {
error_log($mysqli->connect_error);
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment