test ! connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; ?>