Good day,
It sort of works now but there is one slight problem, when the data is queried from the database and displayed on the table, it is some how wrong. user-1’s data is displayed when user2 is logged in. same story if i login with the other user. But i think we are really close now to find the solution.
secondly, please correct me if I am wrong, but $user_id
has to do with access control (admin, contributor, etc). So, wouldn’t it maybe work better if used ID
(on the first column, which is auto-incremented). at that case it will always be unique to that particular person. link – https://take.ms/viPht
I hope I am not causing too much unnecessary work for you.
Kind regards,
Simphiwe