connect.php 290 B

12345678910111213
  1. <?php
  2. $host = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $database = "todo";
  6. $mysql = new mysqli($host, $username, $password, $database);
  7. // Проверка соединения
  8. if ($mysql->connect_error) {
  9. die("Ошибка соединения: " . $mysql->connect_error);
  10. }