When you're using table layouts, each product's block of Add to Cart code must occupy a single table cell -- you cannot split a product's button code such one part of the button code is inside one cell and another part is inside another cell.
However, bear in mind that you only need one block of View Cart code per entire page; you don't need a View Cart for every single Add to Cart, and most often the View Cart is placed unobtrusively in a page header, footer or sidebar area completely apart from specific product listings and Add to Cart buttons.