forked from JBellec/Projet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profil.php
105 lines (80 loc) · 4.3 KB
/
profil.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php include 'includes/header.php';
include 'includes/navbar.php';
include 'includes/mysql.php'; ?>
<div class="container"> <!-- Three columns of text below the carousel -->
<div class="row">
<div class="col-lg-4"> <!--debut colonne 1 -->
<img class="img-circle" src="includes/profil/<?php echo $donnees['image']; ?>" alt="Generic placeholder image">
<h2>Meeee ^_^</h2>
<p>
</p>
<p><a class="btn btn-primary" href="photoprofil.php" role="button">Photos »</a></p>
</div><!-- fin colonne 1 -->
<div class="col-lg-4"> <!-- debut colonne 2 -->
<h2>Informations divers</h2>
</br>
<p>
<?php
$reponse = $connect->query('SELECT * FROM user');
// On récupère tout le contenu de la table user
$req = $connect->prepare('SELECT * FROM user Where pseudo = ?');
$req->execute(array($_GET['pseudo']));
// On affiche chaque entrée une à une
while ($donnees = $req->fetch())
{
?>
<p>
<ul>
<li><strong>My last name is : </strong><?php echo $donnees['name']; ?></li><br />
<li><strong> have a super first name:</strong> <?php echo $donnees['lastname']; ?></li></br>
<li><strong>You can call me : </strong><?php echo $donnees['pseudo'];?></br>
<li><strong>To contact me:</strong> </br>
<ul>
<li>You can send me an e-mail:</strong><?php echo $donnees['email'];?></li></br>
<li>Or phone me at : </strong><?php echo $donnees['phone'];?></li><br/>
</ul>
<li><strong>I live in : </strong><?php echo $donnees['adress'];?></li><br/>
<li><strong>You can see my beautiful pictures » <?php echo $donnees ['photos'];?></li></br>
<li><strong>I study :</strong> <?php echo $donnees ['network'];?></li>
</ul>
</p></br>
<?php if($_SESSION['pseudo']== $_GET['pseudo']){
?>
<p><a class="btn btn-primary" href="modif.php" role="button">Modification »</a></p>
<?php }
?>
<?php
}
$req->closeCursor(); // Termine le traitement de la requête
?>
</p>
</div><!-- fin colonne 2 -->
<div class="col-lg-4"> <!-- debut colonne 3 -->
<h2>Liens utiles</h2>
</br>
<?php
$reponse = $connect->query('SELECT * FROM user');
// On récupère tout le contenu de la table user
$req = $connect->prepare('SELECT * FROM user Where pseudo = ?');
$req->execute(array($_GET['pseudo']));
// On affiche chaque entrée une à une
while ($donnees = $req->fetch())
{
?>
<p>
<ul>
<li> My facebook count : <?php echo $donnees['lienf'];?></li> </br>
<li> I have a Twitter count too : <?php echo $donnees['lient']; ?></li><br />
</ul>
<?php
}
$req->closeCursor(); // Termine le traitement de la requête
?>
</p>
<div class="img_QRcode">
<p> <?php echo '<img src=qr/generate.php?txt='.$URL.'profil.php?pseudo='.$_SESSION['pseudo'].' class="img-responsive"/>';?></p>
</div>
</div><!-- fin colonne -->
</div><!-- /.row -->
</div>
<?php include 'includes/footer.php' ?>