'Search' searches through all rows in mysql table, ignore where condition

'Search' searches through all rows in mysql table, ignore where condition

ebentilebentil Posts: 1Questions: 1Answers: 0

I'm using server side processing with Datatables. My datatables picks rows from a view in my table where username ='$session'.
$session stores the current user's username. This works fine and displays all rows with $session correctly but when I attempt a search it displays results from all users in my table. I used the $where variable in ssp.class.php to perform the restriction and it works fine.
My question is how do you restrict a search to an sql condition?

This discussion has been closed.