Hi guys! Need help if 2 words have a product - it is in 2 categories! In the database it looks like this - the first column is the product ID - 2 category IDs where it is attached!
So I write the code:
$dad_result = mysql_query("select * from oc_product_to_category where (product_id = 99)") or die(mysql_error()); $oc_product_to_category = mysql_fetch_array($dad_result); echo $oc_product_to_category['category_id'];
and displays only the first value, but the second one is needed!
Tell me what I'm doing wrong!