mirror of
https://github.com/Pathduck/pathduck.github.io.git
synced 2025-12-29 11:45:20 -05:00
20 lines
383 B
PHP
Executable File
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";
|
|
|
|
?>
|