Jump to content

Arrays and such. Need help.


MikeDXUNL

Recommended Posts

Alrighty,

 

Say I have a site where there are these fields in the db.

 

TABLE: photo_package

FIELDS: product_id, gallery_id, title, productfam

 

I need to, on a page, give every product in the family to display.

 

So say I have.

 

DATA:

1, 4, mac book, 4

2, 4, laptop, 4

3, 3, some book, 4,3

 

The last one has a productfam of 4 and 3 cause when on the 'Some Book' page, it should show Mac Book and Laptop as part of it's product family.

 

What would be the best way to approach getting these values?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/164052-arrays-and-such-need-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.