travail en colab avec alexis et nicolas sur un partage
This commit is contained in:
parent
ad8a35e7b1
commit
8560982825
9
php/common.php
Normal file
9
php/common.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
function initDatabase() {
|
||||||
|
$db = mysqli_connect("dwarves.iut-fbleau.fr","ghouar-t","Bases2023","ghouar-t");
|
||||||
|
if(!$db){
|
||||||
|
die("Connexion BD impossible.");
|
||||||
|
}
|
||||||
|
return $db;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user