title: Can't update user's info clicking on a submit
body: <p>Everytime an user register in my website, they have a "free account".
  In my website there're 4 types of accounts:</p>
  
  <p>Free - 2GB</p>
  
  <p>Basic - 5GB</p>
  
  <p>Ultra - 10GB</p>
  
  <p>Plus - 25GB</p>
  
  <p>Each one with an unique id.
  I have created this code. Depending of the submit you click, your user get one of those accounts (Basic Ultra or Plus).</p>
  
  <pre><code>    public static function ComprobarTarifa($user){
          $sql = "SELECT id_tipocuenta FROM canal WHERE id = '$user'";
          $resultado = self::Conexion($sql);
          $verificacion = false;
  
          if(isset($resultado)) {
              $fila = $resultado-&gt;fetch();
              if($fila !== false){
                  $verificacion=true;
              }
          }
          return $verificacion;
      }
  
      public static function AmpliarCuenta($user, $tarifa){
          $sql = "UPDATE canal SET id_tipocuenta = '$tarifa' WHERE id = '$user'";
          $resultado = self::Conexion($sql);
          return $resultado;
      }
  
      public static function AmpliarCuentaErrores(){
          $error = "";
          $tarifa = 0;
  
          if(isset($_POST["tarifaBasic"])){
              $tarifa = 2;
  
              if(isset($_SESSION["usuario"])){
                  if(self::ComprobarTarifa($_SESSION["usuario"]) != $tarifa){
                      DataBase::AmpliarCuenta($_SESSION["usuario"], $tarifa);
                      $error = "&lt;div id='error_alert'&gt;&lt;div class='error_container'&gt;&lt;i class='fa fa-times awesome error_close btn'&gt;&lt;/i&gt;&lt;div class='error_text'&gt;Ya estás usando esa tarifa...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
                  }
              } else {
                  $error = "&lt;div id='error_alert'&gt;&lt;div class='error_container'&gt;&lt;i class='fa fa-times awesome error_close btn'&gt;&lt;/i&gt;&lt;div class='error_text'&gt;Debes iniciar sesión primero...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
              }
          }
  
          if(isset($_POST["tarifaUltra"])){
              $tarifa = 3;
  
              if(isset($_SESSION["usuario"])){
                  if(self::ComprobarTarifa($_SESSION["usuario"]) != $tarifa){
                      DataBase::AmpliarCuenta($_SESSION["usuario"], $tarifa);
                      $error = "&lt;div id='error_alert'&gt;&lt;div class='error_container'&gt;&lt;i class='fa fa-times awesome error_close btn'&gt;&lt;/i&gt;&lt;div class='error_text'&gt;Ya estás usando esa tarifa...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
                  }
              } else {
                  $error = "&lt;div id='error_alert'&gt;&lt;div class='error_container'&gt;&lt;i class='fa fa-times awesome error_close btn'&gt;&lt;/i&gt;&lt;div class='error_text'&gt;Debes iniciar sesión primero...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
              }
          }
  
          if(isset($_POST["tarifaPlus"])){
              $tarifa = 4;
  
              if(isset($_SESSION["usuario"])){
                  if(self::ComprobarTarifa($_SESSION["usuario"]) != $tarifa){
                      DataBase::AmpliarCuenta($_SESSION["usuario"], $tarifa);
                      $error = "&lt;div id='error_alert'&gt;&lt;div class='error_container'&gt;&lt;i class='fa fa-times awesome error_close btn'&gt;&lt;/i&gt;&lt;div class='error_text'&gt;Ya estás usando esa tarifa...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
                  }
              } else {
                  $error = "&lt;div id='error_alert'&gt;&lt;div class='error_container'&gt;&lt;i class='fa fa-times awesome error_close btn'&gt;&lt;/i&gt;&lt;div class='error_text'&gt;Debes iniciar sesión primero...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
              }
          }
          return $error;
      }
  </code></pre>
  
  <p>The problem is that my database doesnt update... What could it be?
  Error divs dont appear...</p>