+
+
Edits
+
+
+
+ | Edit # |
+ Username |
+ New Question |
+ Old Question |
+ Question # |
+
+
+
+ query('SELECT te.*, tq.question as original FROM triviaedit te INNER JOIN triviaquestion tq on tq.id=question_id ORDER BY id DESC LIMIT 10');
+ if ($q === false) {
+ die("Error: database error: table does not exist\n");
+ } else {
+ $result = $q->fetchAll();
+ foreach($result as $res) {
+ $isItalic = false;
+ $brokenNew = str_split($res['question']);
+ $brokenOld = str_split($res['original']);
+ $differenceString = '';
+ for($i=0;$i';
+ echo '' . $res['id'] . ' | ';
+ echo '' . $res['username'] . ' | ';
+ echo '' . $differenceString . ' | ';
+ echo '' . $res['original'] . ' | ';
+ echo '' . $res['question_id'] . ' | ';
+ echo '';
}
- } else {
- die('Couldnt connect to db');
- }
- ?>
-
-
+ }
+ } else {
+ die($err);
+ }
+ ?>
+