[eluser]BobbyB[/eluser]
Hi Johan,
thanks for your reply.
The usernames are unique and cannot be changed so that is not a problem.
Basically all I want to do is to display if the user has any invoices that are due.
I actually dont even need to display all the invoices I just want to check, if there are any, that are due.
I want to print out all the users:
user1 : first_name : last_name : due_invoices=yes
user2 : first_name : last_name : due_invoices=no
user3 : first_name : last_name : due_invoices=yes
and so on...
Therefore, I somehow have to include all invoices' data(date_due,...) of a user in the user array without duplicating the user(like I wrote in my first post).
Then I was going to check for each user if he has invoices that are due or not.
I hope I am being clear.
Thanks for your help.