If you want to connect 2 9V batteries together to get 18V then you'll want to do them in series (positive to negative connection).
If you connect them in parallel (positive to positive), the overall voltage will remain at 9V but you'll have more battery life.
So from what you're describing, I think you want the series connection