9 lines
196 B
PHP
9 lines
196 B
PHP
|
<?php
|
||
|
|
||
|
function initDatabase() {
|
||
|
$db = mysqli_connect("dwarves.iut-fbleau.fr","ghouar-t","Bases2023","ghouar-t");
|
||
|
if(!$db){
|
||
|
die("Connexion BD impossible.");
|
||
|
}
|
||
|
return $db;
|
||
|
}
|