Creating A dynamic Table within a Dynamic Page

I am making a real estate website. On a dynamic page i need to insert a dynamic table for a particular project based on house type (1 bhk, 2 bhk). House type is not fixed for every project and it changes. I can leave empty text linked with database, but in that case I have to write in the database everything in text form. Does anyone has a better solution?