But one column in the display table has to do with the
users history with a particular row. Either he has
some kind of history, or he has none.
So...
I have 4 rows total in the item control dbtable.
I always have to display the total amount of rows in the
item control table (4 at this time).
items.it_ID
items.it_Name
etc...
Yet my user has a history with only 1 of the items and
this data is kept in the user_item_history dbtable.
user_item_history.ID
items.it_ID
user.UserID
etc....
So my HTML output would have to look like...
| ITEM TITLE | USER ITEM HISTORY |
| ---------- | ----------------- |
| Item One | No User History |
| Item Two | Click for History |
| Item Three | No User History |
| Item Four | No User History |
It would be easy if I only had to show the items
related to, or not to the user. But I need to show both.
I'm looking at 2 different queries, array's and while loops.
I've tried a number of different things but none seem
to do what I want.
I'm stuck.
Thanks,
The Stuck Newbie
In reply to Newbie can't see the forest by CrossEyedMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |