1
0
mirror of https://github.com/Pathduck/pathduck.github.io.git synced 2025-12-29 11:45:20 -05:00
Files
pathduck.github.io/test/db-test.php
Stian Lund be6af0e21b adds
2022-10-07 18:32:49 +02:00

20 lines
383 B
PHP
Executable File

<?php
$servername = "";
$username = "";
$password = "";
$database = "";
$var_mysqli = function_exists('mysqli_connect');
var_dump($var_mysqli);
// Create connection
$conn = mysqli_connect($servername, $username, $password, $database);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
echo "Connected successfully";
?>