-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathszemelyes.php
More file actions
50 lines (34 loc) · 1.44 KB
/
Copy pathszemelyes.php
File metadata and controls
50 lines (34 loc) · 1.44 KB
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
<?php require_once 'header.php'; ?>
</head>
<?php require_once './nav.php'; ?>
<?php require_once './connect.php'; ?>
<?php
$uname= $_SESSION['uname'];
$sql = "SELECT vnev, phone,email,password,cim FROM user WHERE loginname = ?;";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $uname);
$stmt->execute();
$result = $stmt->get_result();
$data = '<table class="table-striped">
<thead>
<th class="col-2">Név</th>
<th class="col-2">Telefonszám</th>
<th class="col-2">E-mail</th>
<th class="col-2"> Jelszó </th>
<th class="col-2"> Cím</th>
</thead>
<tbody>';
while ( $row = $result->fetch_assoc()){
$data .=
'<tr>
<td class="col-2">'.$row["vnev"].'</td>
<td class="col-2">' . $row["phone"].'</td>
<td class="col-2">' . $row["email"].'</td>
<td class="col-2">' . $row["password"].'</td>
<td class="col-2">' . $row["cim"].'</td>
</tr> ';
}
$data .= '</tbody>
</table>
';
echo $data;