10 lines
271 B
PHP
10 lines
271 B
PHP
|
<?php
|
||
|
$db = mysqli_connect("dwarves.iut-fbleau.fr", "charpentj", "PommePatate", "charpentj");
|
||
|
if (!$db) {
|
||
|
echo "<script>alert('Echec de la connexion à la BDD.')</script>";
|
||
|
die();
|
||
|
} else {
|
||
|
echo "<script>alert('Connexion réussie à la BDD.')</script>";
|
||
|
}
|
||
|
;
|
||
|
?>
|