Answer the question
In order to leave comments, you need to log in
What to fix to make a query for a selection from two tables work?
Why is the request not working?
$query = "SELECT products.name AS product, users.name AS user, orders.count AS qty FROM orders LEFT JOIN users ON orders.user_id = users.id LEFT JOIN products ON orders.product_id = products.id WHERE id = $ord_id";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question