User permissions read for id row

User permissions read for id row

ramthasramthas Posts: 3Questions: 0Answers: 0

Good evening,
bad english, sorry ...
I would like to know if possible to display for each user table-line ID, only his data.
Example:
ID 12345 corresponds to user "batman"
ID 67891 corresponds to user "spider man"

Thus user 12345 (batman) can display ONLY the relative row

Possible?

Replies

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    You would apply a condition to whatever you are using to read the data from the data source. In the case of an SQL database you would use a WHERE condition to restrict it to the relevant data only for example.

    Allan

  • ramthasramthas Posts: 3Questions: 0Answers: 0

    thank you allan
    I do not know how to do this

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    What code / library are you currently using to read the information from the database?

    Allan

  • ramthasramthas Posts: 3Questions: 0Answers: 0

    WordPress + MySql + tablepress
    I do not know anything else

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    I'm not sure either then I'm afraid. I don't know if TablePress offers a way to populate a table from a database or not. You'd need to contact the author of TablePress to get help with how the table is being populated.

    Allan

This discussion has been closed.