title: How would i go about producing a username instead of a user id in profile.php?
body: <p>Ok guys well to boot this up what i am wanting is to remove the echo of userid in the url and replace it with the actual username.</p>
  
  <p>the full code is in the link below the partial code.</p>
  
  <pre><code>if(!isset($_GET["u"]) || !($u = $db-&gt;getRow("SELECT * FROM `".MLS_PREFIX."users` WHERE `userid`= ?i", $_GET["u"]))){
  </code></pre>
  
  <p><a href="http://pastebin.com/yM5gLAkr" rel="nofollow">http://pastebin.com/yM5gLAkr</a></p>
  
  <p>EXAMPLE:</p>
  
  <p>CURRENT: index.php?u=1</p>
  
  <p>what i want: index.php?u=username</p>