CrossEyedMonk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Newbie can't see the forest
by Malach (Scribe) on Mar 06, 2002 at 20:16 UTC | |
by Anonymous Monk on Mar 06, 2002 at 20:29 UTC | |
by Malach (Scribe) on Mar 07, 2002 at 00:57 UTC | |
|
Re: Newbie can't see the forest
by dws (Chancellor) on Mar 06, 2002 at 20:50 UTC | |
|
Re: Newbie can't see the forest
by perrin (Chancellor) on Mar 06, 2002 at 20:27 UTC | |
by Anonymous Monk on Mar 06, 2002 at 20:35 UTC | |
|
Re: Newbie can't see the forest
by grummerX (Pilgrim) on Mar 06, 2002 at 20:32 UTC |