title: Query works on localhost,but not on server
body: <p>im trying to update fields,so when im on localhost it does everything succesfully,but when im on server it does nothing.Here's code:</p>
  
  <pre><code> if(isset($_POST['update'])){
  $update_data = array(
  
  'total_kills'            =&gt; $total_kills,
  'total_deaths'           =&gt; $total_deaths,
  'total_assists'          =&gt; $total_assists,
  'highest_champ_dmg'      =&gt; $highest_champ_dmg,
  
  'times_played'           =&gt; $times_played,
  'wins'                   =&gt; $wins,
  'losses'                 =&gt; $losses,
  'win_rate'               =&gt; $win_rate,
  'record_total_dmg'       =&gt; $record_total_dmg,
  'total_kda'              =&gt; $total_kda,
  'average_kills'          =&gt; $average_kills,
  'average_deaths'         =&gt; $average_deaths,
  'average_assists'        =&gt; $average_assists,
  'average_kda'            =&gt; $average_kda,
  'highest_kills'          =&gt; $highest_kills,
  'highest_deaths'         =&gt; $highest_deaths,
  'highest_assists'        =&gt; $highest_assists,
  'highest_kda'            =&gt; $highest_kda,
  'lowest_kills'           =&gt; $lowest_kills,
  'lowest_deaths'          =&gt; $lowest_deaths,
  'lowest_assists'         =&gt; $lowest_assists,
  'lowest_kda'             =&gt; $lowest_kda
  );
  
  
  foreach($update_data as $field=&gt;$data){
          $update = '`' . $field .'` = \'' . $data . '\'';
          $dbc-&gt;query("UPDATE `champions` SET ".implode(', ',array($update)) ."WHERE `name`='$champ_name'");
      }
  }
  
  
  
  
  if(!$_SESSION['Username'] == ""){
      echo '&lt;input type="submit" value="Update" name="update"&gt;';
  }
  </code></pre>
  
  <p>Is there something i should know,that affects,code when it's being hosted?</p>