Why don't you use database for the purpose. It will be very simple with that option.
debasisdas
Posting Genius
6,870 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
The code you require has been posted here a number of times. Please spend some time to search here for the same.
debasisdas
Posting Genius
6,870 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434