Confused with Loop

Posted on 16th Feb 2014 by admin

guys, i got confused with Looping...this is the case

I have 3 stocks, let say "Stock A", "Stock B", "Stock C" and the owner of each stock A --> Mr.James
stock B --> Mr.Barry
Stock C --> Mr. James

So A & B belong to Mr. James...and C belong to Mr Barry, now i want to display every stocks that belongs to Mr James and Mr Barry separately

How to do it using While?? really confused with this..thanks in advance

Other forums