title: PHP level and experience system
body: <p>I'm trying to create a levelling and experience system. I've done it but I'm trying to get PHP to work out how much experience is needed to level up.</p>
  
  <p>For every level, an user needs 670 experience. But if I added 670 to their experience total, it wouldn't work it out correctly.</p>
  
  <p>This is how I did it..</p>
  
  <pre><code>&lt;?php $exp = ($user["experience"]+670); ?&gt;
  </code></pre>
  
  <p>But that isn't working how much the user needs. Hope I've explained clearly. Any help will be nice, thanks.</p>