ajout du dbConnect
Co-authored-by: Charpentier Juliette <juliette.charpentier1@etu.u-pec.fr>
This commit is contained in:
parent
d662fa76b7
commit
235d9356f0
@ -32,14 +32,11 @@
|
||||
<label for="password">Mot de passe</label>
|
||||
<input type="password" id="password" name="password" required placeholder=" ">
|
||||
</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">
|
||||
<!-- <a href="#">Mot de passe oublié ?</a>-->
|
||||
</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>
|
||||
<p class="no-account">Vous n'avez pas de compte ? <a href="/account/register">Créez un compte pour commencer
|
||||
!</a></p>
|
||||
|
0
account/login.php
Normal file
0
account/login.php
Normal file
0
account/my/index.php
Normal file
0
account/my/index.php
Normal file
0
account/register/register.php
Normal file
0
account/register/register.php
Normal file
@ -138,3 +138,11 @@ button:hover {
|
||||
.sign-up a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: white;
|
||||
font-size: 2rem;
|
||||
text-align: left;
|
||||
margin-top: 1rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
10
tools/dbConnect.php
Normal file
10
tools/dbConnect.php
Normal 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>";
|
||||
}
|
||||
;
|
||||
?>
|
Loading…
Reference in New Issue
Block a user