Guest User

Untitled

a guest
Feb 13th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2. require_once "../INCLUDES/conn.php";
  3.  
  4. $con = connection();
  5. $user = 'usuario';
  6. $pass = password_hash('K899XMu8ee4I', PASSWORD_DEFAULT);
  7.  
  8.  
  9. $statement = $con->prepare("INSERT INTO usuarios (name, pass) VALUES (:user,
  10. :pass)");
  11. $statement->bindParam(':user', $user);
  12. $statement->bindParam(':pass', $pass);
  13. $statement->execute();
  14. $con = null;
  15. ?>
  16.  
  17. Array (
  18. [0] => HY000
  19. [1] => 1745
  20. [2] => OCIStmtExecute: ORA-01745: invalid host/bind variable name (extpdo_ocioci_statement.c:159)
  21. )
Add Comment
Please, Sign In to add comment