strife/php/db.php

13 lines
229 B
PHP

<?php
$host = 'localhost';
$user = 'root';
$password = '';
$dbname = 'messaging_app';
$conn = new mysqli($host, $user, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}