Hello all,
I have two tables in my database, one with information items and one with details about users. I have it setup like this:
Table1:
Table2:
The value in the Items field means that he has four of the Item with the ID of 1 in Table1 and eight of the Item with the ID of 2 in Table1. What I am trying to do is parse this field so it outputs the actual item name and then move on to the next item.
So it would be like this:
Bob has:
ItemName
ItemName
ItemName
ItemName
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
I hope I explained it well, please let me know if your confused! Thanks!!
I have two tables in my database, one with information items and one with details about users. I have it setup like this:
Table1:
Code:
ID Name
1 ItemName
2 ItemName2
Table2:
Code:
UserName Items
Bob 1(4), 2(8)
The value in the Items field means that he has four of the Item with the ID of 1 in Table1 and eight of the Item with the ID of 2 in Table1. What I am trying to do is parse this field so it outputs the actual item name and then move on to the next item.
So it would be like this:
Bob has:
ItemName
ItemName
ItemName
ItemName
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
ItemName2
I hope I explained it well, please let me know if your confused! Thanks!!