-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathara.php
43 lines (37 loc) · 765 Bytes
/
ara.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
<?php
include"database.php";
$sql = "SELECT * FROM staff WHERE 1=1";
$res=$db->query($sql);
echo "<table border='1px' class='table'>
<tr>
<th>No</th>
<th>İsim</th>
<th>Takım</th>
<th>Üniversite</th>
<th>Görüntüle</th>
<th>Sil</th>
</tr>
";
if($res->num_rows>0)
{
$i=0;
while($row=$res->fetch_assoc())
{
$i++;
echo "<tr>
<td>{$i}</td>
<td>{$row["TNAME"]}</td>
<td>{$row["QUAL"]}</td>
<td>{$row["SAL"]}</td>
<td><a href='sorumlu_goruntule.php?id={$row["TID"]}' class='btnb'>Görüntüle</a></td>
<td><a href='sorumlu_sil.php?id={$row["TID"]}' class='btnr'>Sil</a></td>
</tr>
";
}
echo "</table>";
}
else
{
echo "<p>Kayıt Bulunamadı</p>";
}
?>