Travail
This commit is contained in:
10
lib/common.php
Normal file
10
lib/common.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
function initDatabase() {
|
||||
$db = mysqli_connect("dwarves.iut-fbleau.fr", "bounnilo","YOYOYO","bounnilo");
|
||||
if(!$db){
|
||||
echo "Erreur de connexion";
|
||||
}
|
||||
return $db;
|
||||
}
|
||||
|
Reference in New Issue
Block a user