Create users via PHP

I found out the problem.
i used wp_update_user to create the user, instead of wp_create_user.

my bad :/

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)