X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=includes%2Faccount.php;h=7f7f1824d15f8bf07aadadc9b5f45da799650dbc;hb=77c2d82c70ae6b1629d372b3c4642cdc2a994698;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=b5f60f89589412e18b51326378ab13b9a4fa0f19;p=Project_webapp.git diff --git a/includes/account.php b/includes/account.php index e69de29..7f7f182 100644 --- a/includes/account.php +++ b/includes/account.php @@ -0,0 +1,109 @@ +"; + $_SESSION['login_referer'] = $_SERVER['HTTP_REFERER']; + redirect("index.php?page=login", 2); + include('footer.html'); + exit(); +} + +$action = filter_input(INPUT_GET, "action", FILTER_SANITIZE_STRING); + +global $connection; +$sql_pquery = "select NomCl, PrenomCl, EmailCl, NumRueCl, NomRueCl, CodePosteCl, VilleCl from CLIENTS where EmailCl = ?"; +$connection->prepare_query($sql_pquery); +$connection->prepared_query_bind_param("s", array($_SESSION['email'])); +$connection->run_prepared_query(); +$connection->get_pquery_result(); +$rows = $connection->get_result_array(); +$connection->close_prepared_query(); + +if (empty($action)) { + echo "
Prénom : | \n"; + echo "" . htmlentities($row['PrenomCl']) . " | \n"; + echo "
Nom : | \n"; + echo "" . htmlentities($row['NomCl']) . " | \n"; + echo "
Email : | \n"; + echo "" . htmlentities($row['EmailCl']) . " | \n"; + echo "
Adresse : | \n"; + echo "\n"; + echo " |
Numéro de rue : | \n"; + echo "" . htmlentities($row['NumRueCl']) . " | \n"; + echo "
Rue : | \n"; + echo "" . htmlentities($row['NomRueCl']) . " | \n"; + echo "
Code postal : | \n"; + echo "" . htmlentities($row['CodePosteCl']) . " | \n"; + echo "
Ville : | \n"; + echo "" . htmlentities($row['VilleCl']) . " | \n"; + echo "