I'm not totally newbie but also not the master of php&mysql, now I'm using Codeigniter for my website.
I arranged some user xp points for some events for website when you add question to website you are earning 10 points, if you wrote answer you are getting 20 points. etc..
So my user_xp table has these columns:
user_id xp_points level
So I'm just curious to make 40 different levels for my users between different points, so I don't want to calculate them again again 40 time by if cases, so if anyone has idea it will help me alot. (If every level was same point it will be easy but higher levels should be more difficult is'nt it?)
Thanks for your help.