Marine1969
IS-IT--Management
I am trying to insert a record into my table and although errors are turned on the code executes but there is no record inserted. I have tried a couple different iterations of code, below is the current. There are only 3 fields I am trying to insert as it is stripped down from 10 fields to these 3. I am beginning to believe that the issue may be with mysql.
PHP:
$str ="Insert Into clients (username, password, email)
Values (:username, :password, :email)";
$uname=$_POST["uname"];
$password = $_POST["pword"];
$hash = password_hash($password, PASSWORD_DEFAULT);
$email=$_POST["email"];
$stmt = $conn->prepare($str);
$stmt->execute(array('username'=> $uname, 'password'=>$hash, 'email'=>$_POST["email"]));