Creating a new blog using PHP

this would do the trick? http://codex.wordpress.org/WPMU_Functions/wpmu_create_blog

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