<?php $serverbname = "Servername"; $dbname ="DB_usernamet"; $pw = "DB_Passwort"; $tbl = "tbl_name"; //create connection $conn = new mysqli($serverbname, $usrename, $pw, $dbname); //check connection if ($conn->connect_error) { die("Connection failedd: " .$conn->connect_error); } echo "connection with DB"; ?>