-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathProfild.php
39 lines (29 loc) · 999 Bytes
/
Profild.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php session_start(); ?>
<?php
try
{
include('TTT_BDD.php');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
$requ = $bdd->prepare('SELECT * FROM utilisateurs WHERE NomUtilisateur = ?');
$requ->execute(array($_SESSION['tttpseudo']));
if($donneesu = $requ->fetch()){
$ville_id=$donneesu['ville_id'];
$_SESSION['tttmail']=$donneesu['Mail'];
$_SESSION['tttphoto']=$donneesu['UrlPhoto'];
$_SESSION['ttttelephone']=$donneesu['Telephone'];
$_SESSION['tttnom']=$donneesu['Nom'];
$_SESSION['tttprenom']=$donneesu['Prenom'];
}
$requ->closeCursor();
$reqi = $bdd->prepare('SELECT ville_nom_reel FROM villes_france_free WHERE ville_id = ?');
$reqi->execute(array($ville_id));
if ($donneesi = $reqi->fetch()) {
$_SESSION['tttville']=$donneesi['ville_nom_reel'];
}
$reqi->closeCursor();
header('Location: Trouvetateam.php');
?>