-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_processing2.php
45 lines (34 loc) · 1.21 KB
/
server_processing2.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
<?php
// DB table to use
$table = 'proc_num';
// Table's primary key
$primaryKey = 'id';
// Array of database columns which should be read and sent back to DataTables.
// The `db` parameter represents the column name in the database, while the `dt`
// parameter represents the DataTables column identifier. In this case simple
// indexes
$columns = array(
array( 'db' => 'telnum', 'dt' => 0 ),
array( 'db' => 'call_status', 'dt' => 1 ),
array( 'db' => 'call_time', 'dt' => 2 ),
array(
'db' => 'call_duration', 'dt' => 3),
array(
'db' => 'click',
'dt' => 4));
// SQL server connection information
$sql_details = array(
'user' => 'tel',
'pass' => 'cj2894',
'db' => 'Tel',
'host' => 'localhost'
);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* If you just want to use the basic configuration for DataTables with PHP
* server-side, there is no need to edit below this line.
*/
require( 'ssp.class.php' );
echo json_encode(
// SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
SSP::complex($_GET, $sql_details, $table, $primaryKey, $columns, '', $whereAll)
);