Insert two row in wordpress database

#require_once('../../../wp-load.php');
#global $wpdb

Comment those lines.. you don’t need it. $wpdb quite global in any template file.

BTW, do you really want’s to make such form in your tempalte file? 0_o

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