-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
42 lines (35 loc) · 850 Bytes
/
index.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
<?php
/**
* Project: blog
* File: index.php
* User: keen
* Date: 10.10.15
* Time: 21:30
*/
require('includes/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>blog.xyz</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div id="wrapper">
<h1>Random thoughts and other silly crap...</h1>
<hr/>
<?php
$query = "SELECT postID, postTitle, postDesc, postDate FROM blog_posts ORDER BY postID";
$records_per_page=5;
$newquery = $paging->paging($query,$records_per_page);
$paging->dataview($newquery, "index");
$paging->paginglink($query,$records_per_page);
?>
</div>
<footer class="footer">
<p>© commanderk33n 2019 - Just Because You Can, Should You?</p>
</footer>
</body>
</html>