-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
58 lines (56 loc) · 1.64 KB
/
footer.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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="myscript.js"></script>
</head>
<style type="text/css">
textarea {
height: 3em;
width: 50%;
padding: 3px;
transition: all 0.5s ease;
}
textarea:focus {
height: 6em;
}
</style>
<body role="document">
<div class="container theme-showcase" role="main">
<div class="well">
<div class="jumbotron">
<?php
$query="SELECT * FROM Wall ORDER BY id DESC";
$result=mysqli_query($connection,$query);
echo "
<form action='insert.php' method='post'>
<h3>Comments / Questions ? </h3>
<input type='text' name='name' style='color:#888;' value='Name (optional)' onfocus='inputFocus(this)' onblur='inputBlur(this)'></br>
<textarea rows='1' cols='10' type='text' name='comment'>Leave a comment here :)</textarea>
</br><input type='submit' class='btn btn-lg btn-primary' value='Submit'>
</form>
</div>
</div>
<div class='container'>
<table class='table table-condensed' style='text-align: center;'>
<thead>
<tr>
<th style='text-align: center;'>Name</th>
<th style='text-align: center;'>Comment</th>
<th style='text-align: center;'>Date</th>
</tr>
</thead>
";
while($row = mysqli_fetch_array($result))
{
echo "<tr bgcolor='$bgcolor'>";
echo "<td width='90px'>" . $row['name'] . "</td>";
echo "<td width='500px'>" . $row['comment'] . "</td>";
echo "<td width='100px'>" . $row['date'] . "</td>";
echo "<tr>";
}
echo "</table></div>"
?>
</div>
</div>
</body>
</html>