Suppose I am building an app using current mysql database tables.
I have this query (SELECT o.,u. FROM users u JOIN orders o ON (o.order_id = u.user_id) WHERE o.order_id = ?) to set privileges.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You just need to add something to the
WHEREclause in view_order.php that matches theuser_idof the logged in user to the order – that will let a user just see their own orders. If you want to give admins the ability to see, everything:At least something like that – you’ll have to tweak it slightly, as I’ve no idea how your tracking the details of the logged in user.