how to filter values to show

how to filter values to show

xnrsisbixnrsisbi Posts: 18Questions: 7Answers: 0

Hi, i want to be able to filter the presented values based on the user that is logged in.
is there any way i can filter (mysql...ex:" where uid = 'ZZZ' ") the datatables load?

This question has an accepted answers - jump to answer

Answers

  • WoldereWoldere Posts: 17Questions: 3Answers: 2
    Answer ✓

    Yeah just pass the user id (from the session most likely) variable as a parameter to the function that queries the database, and use it with 'WHERE uid = variable'

  • xnrsisbixnrsisbi Posts: 18Questions: 7Answers: 0

    Thanks :-)

This discussion has been closed.