Hello
Think this is simple, but can't work out a simple way to do it..
Not sure how to describe it either, so i'll try my best.
I have a list of items drawn from a mysql db table (items), each with their own category.
I want to make one request for listing the items (table: items), which includes a row called "catid". And also, one request for categories (which contains the category id, and category name), save it in an array, and then when listing the items, do something along the lines of replacing the catid (from the items list), with the category name (from the categories info table).
sorry if this isn't clear
thanks
Think this is simple, but can't work out a simple way to do it..
Not sure how to describe it either, so i'll try my best.
I have a list of items drawn from a mysql db table (items), each with their own category.
I want to make one request for listing the items (table: items), which includes a row called "catid". And also, one request for categories (which contains the category id, and category name), save it in an array, and then when listing the items, do something along the lines of replacing the catid (from the items list), with the category name (from the categories info table).
sorry if this isn't clear
thanks