Filter datatables based on where clause

Filter datatables based on where clause

tbraham23tbraham23 Posts: 1Questions: 0Answers: 0
edited November 2014 in Free community support

i would like my table to display only data related to the user that is loggged in employer's id. when i hard code it, it works but how do i make it dynamic?

my php code below works, how do i make it work without hard coding the value.

->where($key = "active", $value = 'yes', $op = "=")
->where($key = "employer_id", $value = "344" , $op = "=")
->process( $_POST )
->json();
This discussion has been closed.