Connect to mysql failed [closed]

Hello i have a problem when im running my webapp php i cannot connect to my database here is the error screenshot

Here is the code

   2) { $logosu = $logobol[1]; } else { $logosu = $logobol[0]; } $site_adi = ucfirst($logosu); $site_adres = $_SERVER['HTTP_HOST']; if(isset($_POST['username'])) { $uname = pd("username"); $paswd = pd("parola"); $ipadres = $_SERVER['REMOTE_ADDR']; $tarayici = $_SERVER['HTTP_USER_AGENT']; $zaman = time(); $kontrol = mysql_query("select * from kullanici where username='$uname' and password='$paswd' and durum='1' and root='0'"); if(mysql_num_rows($kontrol)<1) { header("Location:index.php?fail=1"); } else { $bilgi = mysql_fetch_array($kontrol); if($bilgi['websitesi']!="" && !strstr($site_adres,$bilgi['websitesi'])) { header("Location:index.php?domain=1"); exit(); } $_SESSION['girisbulten'] = $bilgi['bulten']; $_SESSION['betuser'] = $bilgi['id']; $_SESSION['betpass'] = $paswd; mysql_query("insert into login_data (id,login_user,login_ip,login_tarayici,zaman,giris_tip) values ('','$uname','$ipadres','Mobil','$zaman','1')"); if($bilgi['alt_durum']>0) { header("Location:../index.php"); } else { header("Location:anasayfa"); } } } ?>