connect_error) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); // exit the PHP script } ?>