title: Problems entering information in MySQL database
body: <p>I'm trying to introduce some data info in the DB on production mode but is not working I'm using PDO for the connection to the DB, in my localhost works correctly but in the GoDaddy server isn't.</p>
  
  <p>I'm using MVC, when I submit I send the data by POST and in the controller is like this</p>
  
  <p>when i make a submit i execute this</p>
  
  <pre class="lang-php prettyprint-override"><code>
      $Registro = new ControladorUsuarios();
      $Registro -&gt; ctrRegistroUsuario();
  </code></pre>
  
  <pre class="lang-php prettyprint-override"><code>static public function ctrRegistroUsuario(){
  
  
  
      if (isset($_POST["regUsuario"])) {
          if (preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ.]+$/', $_POST["regUsuario"]) &amp;&amp;
            preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST["regEmail"]) &amp;&amp;
            preg_match('/^[a-z0-9][a-z0-9.]+$/', $_POST["regPassword"])) {
  
            $encriptar = crypt($_POST["regPassword"], '//hash');
  
            $encriptarEmail = md5($_POST["regEmail"]);
  
            $datos = array(
              "usuario" =&gt; strtolower($_POST["regUsuario"]),
              "email" =&gt; strtolower($_POST["regEmail"]),
              "password" =&gt; $encriptar,
              "nombre" =&gt; strtolower($_POST["regNombre"]),
              "apellidos" =&gt; strtolower($_POST["regApellido"]),
              "telefono" =&gt; $_POST["regTelefono"],
              "verificacion" =&gt; $encriptarEmail
            );
  
            $tabla = "usuario";
  
            $respuesta = ModeloUsuarios::mdlRegistroUsuario($tabla, $datos);
  
            if ($respuesta == "ok") {
  
              /*===================================================================
              =            HERE I SEND A CONFIRMATION MAIL ACCOUNT           =
              ===================================================================*/
  
              $envio = $mail-&gt;Send();
  
              if (!$envio) {
  
                echo'error';
  
              } else {
  
                echo 'success';
  
              }
  
            }else{
  
              echo 'error2';
  
            }
  
          }
        }
  
      }
  </code></pre>
  
  <p>when i make a submit the error goes to error2 and in my model i have this </p>
  
  <pre class="lang-php prettyprint-override"><code>    public static function mdlRegistroUsuario($tabla, $datos){
  
        $stmt = Conexion::conectar()-&gt;prepare("INSERT INTO $tabla (usuario, email, password, nombre, apellidos, telefono, verificacion) VALUES (:usuario, :email, :password, :nombre, :apellidos, :telefono, :verificacion)");
  
        $stmt-&gt;bindParam(":usuario", $datos["usuario"], PDO::PARAM_STR);
  
        $stmt-&gt;bindParam(":email", $datos["email"], PDO::PARAM_STR);
  
        $stmt-&gt;bindParam(":password", $datos["password"], PDO::PARAM_STR);
  
        $stmt-&gt;bindParam(":nombre", $datos["nombre"], PDO::PARAM_STR);
  
        $stmt-&gt;bindParam(":apellidos", $datos["apellidos"], PDO::PARAM_STR);
  
        $stmt-&gt;bindParam(":telefono", $datos["telefono"], PDO::PARAM_STR);
  
        $stmt-&gt;bindParam(":verificacion", $datos["verificacion"], PDO::PARAM_STR);
  
        if ($stmt-&gt;execute()) {
          return "ok";
        } else {
          return errorinfo();
        }
  
        $stmt-&gt;close();
  
        $stmt = null;
  
      }
  </code></pre>
  
  <p>In my <code>error_log</code> appears this errors </p>
  
  <pre><code>    #0 route/Controladores/usuarios.controlador.php(33): ModeloUsuarios::mdlRegistroUsuario('usuario', Array)
      #1 route/registro.php(42): ControladorUsuarios::ctrRegistroUsuario()
      #5 {main}
        thrown in route/Modelos/usuarios.modelo.php on line 31
  </code></pre>
  
  <p>I really don't know what the problem is hope someone can help me</p>