Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lionel Ferrafiat
RIE-2017-ProjetTutore-G1
Commits
2b4c5974
Commit
2b4c5974
authored
Dec 13, 2018
by
System Administrator
Browse files
ajout page mon compte, correction erreur de mot de passe page accueil
parent
f47f292c
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteWeb/html/moncompte.php
View file @
2b4c5974
...
...
@@ -29,46 +29,11 @@ session_start(); //Demmarre la session
<div>
<h1>
Informations de votre compte
</h1>
<?php
// Pour chaque utilisateur, on affiche ses informations
$password
=
$_SESSION
[
'password'
];
require_once
(
"paramcon.php"
);
// $res=ListerInfoUsers($pseudo, $conn1);
// $req = $connexion->prepare('INSERT INTO utilisateurs(nom, prenom, email, login, password) VALUES(:nom, :prenom, :email, :login, :password)');
$req
=
$connexion
->
prepare
(
'SELECT * FROM utilisateurs WHERE login='
".
$login
."
';"'
);
$res
=
$req
->
fetchAll
();
$resu
=
$res
->
fetchAll
();
foreach
(
$res
as
$ligneres
){
echo
'Votre Login :'
;
echo
$ligneres
[
'login'
];
echo
'<br>'
;
echo
'Votre Email :'
;
echo
$ligneres
[
'email'
];
echo
'<br>'
;
// echo 'Votre adresse :';
// echo $ligneres['adresse'];
// echo '<br>';
// echo 'Votre ville :';
// echo $ligneres['ville'];
// echo '<br>';
// echo 'Votre code postal :';
// echo $ligneres['cp'];
// echo '<br>';
}
?>
<p>
Votre Login:
<?php
echo
$_SESSION
[
'login'
];
?>
</p>
</div>
</section>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment