Hello guys,
I have a small problem whete there's this system i am creating.
Users register and are added to the database. Users get pointe after two users have referred him or her. after attaining 100 points(in form of goods or service) the users can either be removed form the database or they can redeem their points. either way the second person in the database gets the next points... and so on.
my problem is in the third loop that goes to the second person on the database....
I have managed to count the 10 people required, but the loop hangs my machine after i try to award the second person his/her points. any help will be greatly appreciated.

ps: i will bring the code tomorrow.

Sounds like infinate looping... Watch for it carefully.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.