I have this function for registering a user into the database with their date and time that the account was successfully created. When I click register it says it successfully registers but still nothing is added in thedatabase.
created_at is in TIMESTAMP format with default value of CURRENT_TIMESTAMP
here is my function
function registerUser(){
    global $connect, $name, $gender, $username, $password, $number, 
           $occupation, $address, $birth_date, $user_type, $photo,
           $status;
    $passwordHash = password_hash($password, PASSWORD_DEFAULT);
    $statement = mysqli_prepare($connect, "INSERT INTO client
                        (username, password, name, phone_number, 
                        gender, address, occupation, birth_date, 
                        user_type, photo, status, created_at) 
                    VALUES (?,?,?,?,?,?,?,?,?,?,?,CURRENT_TIMESTAMP)");
    mysqli_stmt_bind_param($statement, "sssssssssss", $username, 
                                        $passwordHash, $name, $number, 
                                        $gender, $address, $occupation, 
                                        $birth_date, $user_type, $photo, 
                                        $status);
    mysqli_stmt_execute($statement);
}
Hoping to fix this as soon as possible
 
     
     
    