-
Notifications
You must be signed in to change notification settings - Fork 0
/
dis.php
97 lines (64 loc) · 1.58 KB
/
dis.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
include 'homepageDB/config.php';
$con=new mysqli($dbservername,$dbusername,$dbpassword,$dbname);
?>
<html>
<head>
<title>
RemindMe!
</title>
<link rel="stylesheet" href="todo.css"/>
</head>
<body class="bgcolor">
<header>
<h1>RemindMe!</h1>
</header>
<nav>
<ul>
<li class="it"><a href="home.html">Home</a></li>
<li> <a href="calander.html">calander</a></li>
<li><a href="todo.html">To-Do</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</nav>
<div class ="container">
<button><a href="user.php">Add task</button></a>
</div>
<table class="table">
<thead>
<tr>
<th scope ="col">id</th>
<th scope ="col">Task</th>
<th scope ="col">Time</th>
<th scope ="col">operations</th>
</tr>
</thead>
<tbody>
<?php
$sql="select * from task";
$result=mysqli_query($con,$sql);
if($result){
while($row=mysqli_fetch_assoc($result)){
$id =$row['id'];
$Task =$row['task'];
$Time =$row['time2'];
echo ' <tr>
<th scope="row">'.$id.'<th>
<td> '.$Task.'</td>
<td>'.$Time.'</td>
<td>
<button><a href="update1.php? updateid='.$id.'">update</a></button>
<button><a href="delete1.php? deleteid='.$id.'">delete</a></button>
</td>
</tr>';
}
}
?>
</tbody>
<table>
</body>
<footer>
<p>RemindMe!,copyright ©2023</p>
</footer>
</html>