$db = mysqli_connect("localhost", "dgs_midas", "fO@8q90z", "diamond_midas"); if (mysqli_connect_errno) { printf("Connect failed: %s\n", mysqli_connect_error); die(); } else { //printf("connected!"); } ?>