-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathd_bus.php
More file actions
54 lines (53 loc) · 1.24 KB
/
d_bus.php
File metadata and controls
54 lines (53 loc) · 1.24 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
51
52
53
54
<?php
include_once 'include/admin_header.php';
$fat="select * from bus";
$r=mysqli_query($con,$fat);
?>
<?php
if (isset($_POST['delete']))
{
$bus_id=@$_POST['id'];
$del="DELETE FROM bus WHERE id='$bus_id'";
if(mysqli_query($con,$del))
{
echo '<script>alert("Bus Deleted Successfully.");</script>';
}
}
?>
<form action="d_bus.php" method="post">
<table class="table shad" >
<th class="th bk_th" colspan="4">
<center> You can Delete bus from here </center>
</th>
<tr>
<td>
<p class="justy mar">
If you want to delete the bus <br> then please enter the bus no .
</p>
</td>
</tr>
<tr>
<td>
<label class="mar">Select Bus ID :</label>
<select class="r_i" name="id">
<option selected disabled>Select here... </option>
<?php while ($res=mysqli_fetch_assoc($r))
{?>
<option value="<?php echo $res['id']; ?>" name="title_tour"><?php echo $res['id']; ?>
</option>
<?php
}?>
</select>
</td>
</tr>
<tr>
<td colspan="3">
<input type="submit" name="delete" class="btn3 mar" value="Delete">
<a href="c_bus.php" class="a"><input type="button" class="btn mar" value="Back"></a>
</td>
</tr>
</table>
</form>
<?php
include_once 'include/a_footer.php';
?>