db and dt in Datatbles ServerSide Processing
db and dt in Datatbles ServerSide Processing
bechirmrad
Posts: 20Questions: 6Answers: 0
Hello
in "server_processing.php" i found db et dt
my question if they are depended of my database or no !! so can i change them or i keep them ?
array( 'db' => 'first_name', 'dt' => 'first_name' ),
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @bechirmrad ,
They can be changed, but you would need to change the dependant scripts, such as
ssp.class.php
. I would suggest getting it working first, then changing if there's a need, at least then you're tackling one unknown at a time.Cheers,
Colin
Thanks !! i will try it
These represent the DataTable mapping for the column header and your database column, where 'db' (an associative array key) holds the string representation of your database column and 'dt' (another associative array key) is the index number of DataTables internal column index.
Example:
array('db' => 'id', 'dt' => 0)
It depends on the script if you need those array keys to get the appropriate values. That's your choice.