Files
pic_share/db.php
T
2026-10-16 15:41:56 +03:00

23 lines
353 B
PHP

<?php
$servername = "http://".$_SERVER['SERVER_NAME'];
$server = "localhost";
$username = "root";
$password = "studio";
$database = "gallery";
$conn = new mysqli($server,$username,$password);
$mysqli = new mysqli($server, $username, $password, $database);
if($mysqli->connect_errno){
die("connection failed:" . mysqli_connect_error());
}