filter SQL query by where ID=$_Session(ID)

filter SQL query by where ID=$_Session(ID)

kasun wkasun w Posts: 1Questions: 1Answers: 0

I need to get table data only related to session ID. That means show data specific to a logged user.
How can i do this with datatable?
filter SQL query by where ID=$_Session(ID).
When i put this to fetch.php file. it give error.
"processing":true,
"serverSide":true,
"order":[],
"ajax":{
url:"fetch.php",
type:"POST"

    },

Answers

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    What are you using for your fetch.php script? Have you written the server-side processing code for that, or using a library from somewhere? That is where the condition would need to be added since you are using server-side processing.

    Allan

This discussion has been closed.