Jump to content

Search the Community

Showing results for tags 'uncaught exception'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Calendars

  • Comunidade iMasters

Forums

  • Q&A Desenvolvimento
    • Perguntas e respostas rápidas
  • Web Development
    • HTML e CSS
    • Javascript
    • PHP
    • Ruby
    • Python
    • Java
    • .NET
    • Docker, Kubernets and other environments
    • WordPress
    • Mobile
    • Agile
    • Desenvolvimento de Games
    • Banco de Dados
    • Design and UX
    • Algoritmos & Outras Tecnologias
  • Entretenimento e uso pessoal
    • Segurança & Malwares
    • Geral
    • iMasters's pub

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Google+


Hangouts


Skype


Twitter


deviantART


Github


Flickr


LinkedIn


Pinterest


Facebook


Site Pessoal


Localização


Interesses

Found 1 result

  1. eduardodsilvaq

    Erro de cadastro - PDOStatement->execute()

    Simplesmente nao entendo o erro... Erro: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in C:\AppServ\www\functions.php:102 Stack trace: #0 C:\AppServ\www\functions.php(102): PDOStatement->execute() #1 C:\AppServ\www\cadastro.php(34): cadastrarUsuario('eduardodsilvaq@...', '8888888888888', 'Eduardo Queiroz', 'Seller', '1990-10-10', '8888888888888') #2 {main} thrown in C:\AppServ\www\functions.php on line 102 Function: function cadastrarUsuario ($x, $y, $q, $r, $w, $e){ $token = md5(mt_rand(34, 38)); $y = loginHash($y); $PDO = Conexao::dbConnect(); $sql = "INSERT INTO usuarios (email, senha, nome, usuario, data, telefone, token) VALUES (:email, :senha, :nome, usuario, :data, :telefone, :token)"; $stmt = $PDO->prepare($sql); $stmt->bindParam(':email', $x); $stmt->bindParam(':senha', $y); $stmt->bindParam(':nome', $q); $stmt->bindParam(':usuario', $r); $stmt->bindParam(':data', $w); $stmt->bindParam(':telefone', $e); $stmt->execute(); echo "<script>alert('Usuario cadastrado com sucesso.');window.location.href='login.php'</script>"; exit; }
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.