-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevlog.php
More file actions
executable file
·57 lines (43 loc) · 950 Bytes
/
devlog.php
File metadata and controls
executable file
·57 lines (43 loc) · 950 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
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/* DEVELOPMENT LOG */
include 'config.php';
include 'connect.php';
include 'header.php';
$pagetitle = "Development Log";
print $header;
print "<div id = 'wrap'>";
print "<div id = 'tripbox'>";
print "<h1>$pagetitle</h1>";
if ( $_SESSION['myusername'] === 'cbfishes' )
{
//print "you are $username";
}
else
{
print "UNDER CONSTRUCTION";
die;
}
// query MYSQL
$result = mysql_query("
SELECT *
FROM devlog
ORDER BY id DESC
LIMIT 100
");
// take the data and put it into an array
//$row = mysql_fetch_array($result);
// get all the variables
print "<div class = 'devlogbox'>";
while($row = mysql_fetch_array($result))
{
// grab stuff from the array and make it into variables we can use
$devtimestamp = $row['timestamp'];
$user = $row['user'];
$id = $row['id'];
$type = $row['type'];
$notes = $row['notes'];
print "$devtimestamp - <b>$user</b> - dev_id: $id - $type <BR><br>
$notes<BR><hr>";
}
print "</div>";
// end of debug box