title: Remove file extension
body: <p>I have this:</p>
  
  <pre><code>$name = $_FILES['file']['name'];
  $skin_name = $_POST['nameXXXXXC'];
  $price = $_POST['amount'];
  $by = $_COOKIE['userName'];
  
  $KS84JMCN = substr($name, 0,strrpos($name,'.'));
  
  mysql_query("
  INSERT INTO `Skins`(
      `Name`,
      `Skin_Name`,
      `Price`,
      `Made_By`
  ) VALUES (
      '$KS84JMCN',
      '$name',
      '$price',
      '$by'
  )");
  </code></pre>
  
  <p>But it's not removing the file extension, in the database, under 'Name' is the file name but with .png at the end, so it's not removing the file extension.</p>