-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbtest.php
More file actions
43 lines (41 loc) · 909 Bytes
/
dbtest.php
File metadata and controls
43 lines (41 loc) · 909 Bytes
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
require "db.php";
$table = getTasks("GreggoWaffle");
?>
<!DOCTYPE html>
<html>
<header>
<h1 id = "greeting"></h1>
</header>
<body>
<p id = "name"></p>
<table>
<tr>
<th>Name</th>
<th>Info</th>
<th>Task Time</th>
<th>Frequency</th>
</tr>
<?php
if ($table->num_rows > 0) {
?> <tr> <?php
while($row = $table->fetch_assoc()) {
?> <td> <?php
echo $row["name"];
?> </td> <td> <?php
echo $row["info"];
?> </td> <td> <?php
echo $row["taskTime"];
?> </td> <td> <?php
echo $row["frequency"];
?> </td> </tr><?php
}
}
?>
</table>
<script src="db.js"></script>
<script>
//getNameRequest("GreggoWaffle");
document.getElementById("greeting").innerHTML = "Hello " + getName("GreggoWaffle") + "!";
</script>
</html>