23 lines
353 B
PHP
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());
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|