LoginSignup
0
0

More than 5 years have passed since last update.

phpとデータベースの接続

Posted at

XAMMPのphpmyadminでデータベースを作成してローカルサーバとの接続方法が知りたいです。

<?php
/データベースの接続設定/
$server = "localhost"; 何を入れるのか?
$user = "root"; 何を入れるのか?
$password = "root"; 何を入れるのか?
$dbname = "member_test"; 何を入れるのか?

/データベースに接続/
$conn = mysql_connect($server, $user, $password);
mysql_select_db($dbname);
?>

「何を入れるのか?」の部分に入れるものは何でしょうか。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0