Efficient Leveling System
<p>I'm making a leveling system based on experience you have on the site. I already have all the experience stuff figured out, and how I want to do the leveling, but I need a more efficient way to do it. I know this would probably would be achieved using an array, but I don't really know how to go about doing that. Enough blabbering, though, this is what I'm trying to do...</p>

<p>Level 1 will be anything under 150 experience
Then I'm going to multiply that by 1.5, so
Level 2 will be anything under 225
Level 3 will be anything under 337.5 and so on. This is the inefficient way that I was going to do.</p>

<pre><code>if($xp &lt; 150){
$level = "1";
}elseif($xp &lt; 225){
$level = "2";
}elseif($xp &lt; 337.5){
$level = "3";
}
</code></pre>

<p>I could use a variable for the number and multiple by 1.5 (<code>$number*1.5</code>), but like I said before I don't really know how that'd work. </p>

<p>*Some more info.. 
I have a session file included on every page and I have queries that would check every time there is new experience earned and this code would be used to update the level on the database automatically. </p>
