Table showing blank cells

Hello, i have a table on my site connected to a database but i want to show just the cells that are filled in the database. I don’t want to show the empty ones. How can i fix that?