ajout du dbConnect

Co-authored-by: Charpentier Juliette <juliette.charpentier1@etu.u-pec.fr>
This commit is contained in:
Loris BALOCCHI 2024-06-08 19:34:51 +02:00
parent d662fa76b7
commit 235d9356f0
7 changed files with 22 additions and 7 deletions

View File

@ -32,14 +32,11 @@
<label for="password">Mot de passe</label> <label for="password">Mot de passe</label>
<input type="password" id="password" name="password" required placeholder=" "> <input type="password" id="password" name="password" required placeholder=" ">
</div> </div>
<!-- <div class="form-group remember-me">
<input type="checkbox" id="remember-me" name="remember-me">
<label for="remember-me">Se souvenir de moi</label>
</div> -->
<div class="form-group forgot-password"> <div class="form-group forgot-password">
<!-- <a href="#">Mot de passe oublié ?</a>-->
</div> </div>
<button type="submit" class="submit-button"><i class="fas fa-sign-in-alt"></i> Connexion</i></button> <button type="submit" class="submit-button" action="../tools"><i class="fas fa-sign-in-alt"></i>
Connexion</i></button>
</form> </form>
<p class="no-account">Vous n'avez pas de compte ? <a href="/account/register">Créez un compte pour commencer <p class="no-account">Vous n'avez pas de compte ? <a href="/account/register">Créez un compte pour commencer
!</a></p> !</a></p>

0
account/login.php Normal file
View File

0
account/my/index.php Normal file
View File

View File

View File

@ -138,3 +138,11 @@ button:hover {
.sign-up a:hover { .sign-up a:hover {
text-decoration: underline; text-decoration: underline;
} }
h1 {
color: white;
font-size: 2rem;
text-align: left;
margin-top: 1rem;
margin-left: 1rem;
}

10
tools/dbConnect.php Normal file
View File

@ -0,0 +1,10 @@
<?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>";
}
;
?>