title: Query not inserting empty data as empty into DB (MAMP)
body: <p>I have read in other websites that local servers' php.ini is configured in different ways. However, I believe that by filling out the rest of the columns manually, it should be able to insert the data. It isn't even showing me any alert. This is my code.</p>
  
  <pre><code>      $datos = array("nombre" =&gt; $_POST["nuevoNombre"],
                   "usuario" =&gt; $_POST["nuevoUsuario"],
                   "password" =&gt; $encriptar,
                   "rol" =&gt; $_POST["nuevoRol"]);
  
    $respuesta = ModeloUsuarios::mdlIngresarUsuario($datos);
    if ($respuesta == 'ok') {
      echo '&lt;script&gt;
        swal({
          type: "success",
          title: "Se ha creado un nuevo usuario",
          showConfirmButton: true,
          confirmButtonText: "Cerrar"
        }).then(function(result){
          if(result.value){
            window.location = "usuarios";
          }
        });
      &lt;/script&gt;';
    } else {
      echo '&lt;script&gt;alert("asdf");&lt;/script&gt;';
    }
  } else {
    echo '&lt;script&gt;
      swal({
        type: "error",
        title: "Por favor llena los campos correctamente",
        showConfirmButton: true,
        confirmButtonText: "Cerrar"
      }).then(function(result){
        if(result.value){
          window.location = "usuarios";
        }
      });
    &lt;/script&gt;';
  }
  </code></pre>
  
  <p>}
  }</p>
  
  <pre><code>  static public function mdlIngresarUsuario($datos){
  $statement = Conexion::conectar()-&gt;prepare("INSERT INTO usuarios (nombre, usuario, password, rol, estado, ultimo_login)
                                              VALUES (, :nombre, :usuario, :password, :rol, :estado, :ultimo_login)");
  $statement-&gt;bindParam(":nombre", $datos["nombre"], PDO::PARAM_STR);
  $statement-&gt;bindParam(":usuario", $datos["usuario"], PDO::PARAM_STR);
  $statement-&gt;bindParam(":password", $datos["password"], PDO::PARAM_STR);
  $statement-&gt;bindParam(":rol", $datos["rol"], PDO::PARAM_STR);
  $statement-&gt;bindParam(":estado", '0', PDO::PARAM_STR);
  $statement-&gt;bindParam(":ultimo_login", '0', PDO::PARAM_STR);
  if ($statement-&gt;execute()) {
    return "ok";
  } else {
    return "error";
  }
  </code></pre>
  
  <p>}</p>
  
  <p><a href="https://i.stack.imgur.com/tcwu7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tcwu7.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/gDIYY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gDIYY.png" alt="enter image description here"></a></p>