Jump to content
Larry Ullman's Book Forums

Johnamc328

Members
  • Posts

    28
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Johnamc328

  1. I found a similar question and tried this

     

            require("./lib/PasswordHash.php");
    $hash = new password_hash(8, false);

                $q = "INSERT INTO users (username, email, pass, first_name, last_name, date_expires) VALUES ('$u', '$e', '"  .  password_hash($p, PASSWORD_BCRYPT) .  "', '$fn', '$ln', SUBDATE(NOW(), INTERVAL 1 DAY) )";

     

    but I get this error

    Fatal error: Class 'password_hash' not found in html\ecommerce2\register.php on line 94

×
×
  • Create New...