show json data depend on user id
show json data depend on user id
rakun87
Posts: 1Questions: 1Answers: 0
hello. I want to show the content depending on user id. The user log-in to the web, after the successful login, he will see the content depending on his "id" that is retrieved from the JSON file which is connected the mysql database.
example:
user submit "car" data to database, when he login to the web, he will see the "car" data which is submitted by himself.
here is the code:
php side: https://justpaste.it/vb8q
jsondata: https://justpaste.it/vb8s
thanks a lot.
This discussion has been closed.
Answers
I'm not sure what your question is, but it sounds like you want to add a
WHERE
condition to the query. If you have the condition you want to apply on the server-side, then you'd need to just modify only the PHP code to take account of that. If the user can submit the filter, then you would need to useajax.data
to submit the extra data.Allan