connect.php 299 B

12345678910111213141516
  1. <?php
  2. $host = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $database = "todo";
  6. $mysql = new mysqli($host, $username, $password, $database);
  7. if($mysql->connect_error) {
  8. die("Ошибка подключения" . $mysql->connect_error);
  9. }
  10. echo "Подключение успешно";
  11. ?>