MYSQL dışında birkaç satır SEÇİMİ

0 Cevap php

I need to select category ids from my sql database. I have a variable $product_id and for each product id there are three rows in a table that i need to select using PHP.

Ben yaparsam "SELECT * FROM table_name WHERE product_id='$prodid'"; Ben sadece üstüne bir tane olsun.

Nasıl aynı içeren tüm üç category_id s seçebilirsiniz product_id?

0 Cevap