submit button not work

Maybe you should add action=”” in

echo'<form method="post">';

change to:

echo'<form method="post" action="">';

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