Filter datatables based on where clause
Filter datatables based on where clause

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.