-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdelete1.php
39 lines (33 loc) · 965 Bytes
/
delete1.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 include 'header.php';?>
<center>
<table>
<tr>
<td align="left">
<?php
if ($admindistrict > 0)
{
$sql = "SELECT * FROM btgcontacts WHERE district = $admindistrict";
} else {
$sql = "SELECT * FROM btgcontacts";
}
$result = $conn->query($sql);
// output data of each row
//while($row = $result->fetch_assoc())
while($result && $row = $result->fetch_assoc())
{
$contactid = $row['contactid'];
?>
<form method="POST" action="delete2.php" name="button1">
<input type="Hidden" name="contactid" value="<?php echo $contactid;?>" />
<input type="submit" value="Delete " name="b13" style="width: 75px; height: 24px; background-color: silver;" size=35 />
<?php
echo "username: " . $row["first"] . " " . $row["last"] . "<br><br><hr>";
}
?>
</form>
</td>
</tr>
</table>
</center>
</body>
</html>