placement TPSecu
This commit is contained in:
9
TP/TPSecurite/lib/common.php
Executable file
9
TP/TPSecurite/lib/common.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
function initDatabase() {
|
||||
$db = mysqli_connect(host,database,login,password);
|
||||
if(!$db){
|
||||
echo "erreur connexion";}
|
||||
return $db;
|
||||
}
|
||||
|
Reference in New Issue
Block a user