As a rule, if you provide some sample code, people will be a lot happier to help you (it shows you've put some work in yourself, and you're not getting other people to do it for you).
(And, if you do provide code, you really have to use strict; and use warnings; and (in this case) use CGI;, otherwise you tend to get jumped on.)
Looking at your question, I'm not entirely sure about your database structure, and how it ties in to the sample table.
It looks to me like you need to select it_ID, it_Name from items, and then loop inside that (with a while loop) selecting user_ID from (table name) where it_ID = (the result from the earlier query), and if you get a non-zero result, display the "click here for" link with a link to the history page.
I could be more clear, with code examples, but to be honest it's too early in the morning for me, and I haven't had a coffee yet :)
Hope that helps.
--
Malach
So, this baby seal walks into a club.....
In reply to Re: Newbie can't see the forest
by Malach
in thread Newbie can't see the forest
by CrossEyedMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |