-
Notifications
You must be signed in to change notification settings - Fork 0
/
arxeio.php
66 lines (51 loc) · 1.47 KB
/
arxeio.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
<div class="page2">Επιλυμένες αναφορές</div>
<div >
<div >
<?php
include 'connect_db.php';
//echo '<div class = pinakas_anaforon>';
// to x_id stis anafores antiprosopevei ton xristi pou anevase thn anafora, enw to x_id stis epilymenes anafores antiprosopevei ton admin pou thn epilyse
$query="SELECT xristes.email,anafores.onoma_anaf,epil_anaf.sxolio_diax,anafores.a_id
FROM epil_anaf
JOIN xristes
ON xristes.x_id=epil_anaf.x_id
JOIN anafores
ON anafores.a_id=epil_anaf.a_id
";
$result = $con->query($query);
if (mysqli_num_rows($result)!=0)
{
?>
<div id="page-wrap">
<table>
<thead>
<tr>
<th>Όνομα Αναφοράς</th><th>Επιλύθηκε από</th> <th>Σχόλιo </th>
</tr>
</thead>
<tbody>
<?php
while ($row = mysqli_fetch_array($result)){
?>
<tr>
<td><a href="show_anaf.php?a_id= <?php echo $row["a_id"]; ?>">
<?php echo $row['onoma_anaf']; ?> </a>
</td>
<td>
<?php echo $row['email']; ?>
</td>
<td>
<?php echo $row['sxolio_diax']; ?>
</td>
</tr> <?php
}
?>
</tbody>
</table>
</div>
<?php
}
else{echo'<div id="whitee">'; echo "Δεν υπάρχουν επιλυμένες αναφορές!"; echo'</div>';}
?>
</div>
</div>