-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
57 lines (54 loc) · 977 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html lang="en">
<title>Learning to Paginate</title>
<head>
<style>
body {
font-family:arial;
font-size:12px;
}
table {
border: 1px solid #ccc;
border-collapse:collapse;
}
tr {
width:200px;
border:1px solid #ccc;
}
td {
border:1px solid #ccc;
}
.paginate {
padding:5px;
font-size:15px;
}
</style>
</head>
<body>
<?php
/*
* requiring the core initiator for the files
* this line could be deleted and just reconfigure the connection method in the paginate.php
*/
require_once 'script/paginate.php';
/*
* instance of the class paginate started
*/
$page = new Paginate();
/*
* getting the sql string
*/
$page->getSQL( "SELECT * FROM web_users ORDER BY id" );
/*
* getting the pager value
*/
$page->getPagerName('jmpager');
/*
* fetching the result of the sql processed
*/
//echo ($page->getResultProvided());
echo $page->displayUpper();
echo $page->fetchPaginatedData();
echo $page->displayLower();
?>
</body>
</html>