Hi everyone, hope you can help me with a problem ive got. I wrote this line, but it isnt correct, im not too familiar with php, so i cant see whats wrong.
I have two tables, one with products which contains products id, and images i want to show on my website, and one table named products_to_categories, where i have my categories of products, and my products id. I want to only show images from the category with id 116
This is my code
$result = mysql_query("SELECT * FROM products_to_categories LEFT JOIN products WHERE categories_id='116'");
Why isnt this working?
Thank you very much in advance!
Lars