2
I have a code that draws a table according to the data in the database. EX: If she has a registered customer she will make the table with only one row, if he has no registered customer, no table will appear. In this code too, I have a filter (tabletools) that when you type anything it checks if it exists in the table. In my model, I need to put a WHERE to show users only from the company that is logged in, but when I put this, the filter stops working. The wrong line is this:
$this->datatables->where('em.e_id = ' . $this->session->userdata('e_id') . ' AND usr.u_ni = 3 OR em.e_fil = ' . $this->session->userdata('e_id') . ' AND usr.u_ni = 3 ');
What error is occurring?
– Dherik
@Dherik the filter when I put Where in the code it does not work, it filters but does not show the filtering result in the View
– Ketlin