No error being thrown but data not inserting into db (PHP PDO) : <p>I have a PHP function to insert a new user into a MySQL database using PDO but for some reason the data doesnt end up inserting, it doesn't throw an error and i can insert data manualy just fine but cant seem to figure out the issue?</p>

<pre><code>public function createNewUser($username, $password, $firstname, $lastname)
{
    try
    {
        $hashedPassword = password_hash($password, PASSWORD_DEFAULT);
        $sqlQuery = "INSERT INTO users(u_username, u_password, u_firstname, u_lastname, u_datecreated) VALUES (?, ?, ?, ?, ?)";
        $statement = $this-&gt;_dbHandle-&gt;prepare($sqlQuery)-&gt;execute([$username, $hashedPassword, $firstname, $lastname, date(SQL_DATE)]);

        print "INSERTED USER";
    }
    catch (PDOException $e)
    {
        echo $e-&gt;getMessage();
        die();
    }

}
</code></pre>
