# Print a HTML table using PHP?

**URL:** <https://forum.kirupa.com/t/print-a-html-table-using-php/133986>\
**Category:** Uncategorized\
**Created:** [January 13, 2005, 4:49pm UTC](https://forum.kirupa.com/t/print-a-html-table-using-php/133986 "2005-01-13T16:49:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![red\_A](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@red\_A](https://forum.kirupa.com/u/red_A)\
**Post date:** [January 13, 2005, 4:49pm UTC](https://forum.kirupa.com/t/print-a-html-table-using-php/133986/1 "2005-01-13T16:49:13Z")

</div>

How do print a HTML table using PHP? i want to be able to pull out data from a database and using a while loop have them printed in a table.

I have created a calendar and of course i want 7 colums and 5 rows and have them populated by PHP dynamically, is it possible?

ps. i forgot to mention that it will pull out these numbers/days from the days coloum in the DB that also have dynamic links, so the table should generate dynamic links aswell…

Thanks 🙂
