You need to integrate the pressure * area for all the little dA area bits along the side wall. So write an equation for the water pressure as a function of depth, and integrate that p(d) along the height and width of the side.