# Formatting result in table format via php

**URL:** <https://forum.kirupa.com/t/formatting-result-in-table-format-via-php/164551>\
**Category:** Uncategorized\
**Created:** [October 2, 2005, 6:57pm UTC](https://forum.kirupa.com/t/formatting-result-in-table-format-via-php/164551 "2005-10-02T18:57:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chup](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chup/32/925_2.png) [@chup](https://forum.kirupa.com/u/chup)\
**Post date:** [October 2, 2005, 6:57pm UTC](https://forum.kirupa.com/t/formatting-result-in-table-format-via-php/164551/1 "2005-10-02T18:57:12Z")

</div>

Hi, this might sound like a silly question, but i usually work with php on flash only.

Now i need a simple php page that will echo out some data from a database and publish them in a html pages. How can i go about doing so?

Take for example the table name is: “classA”  
and i want to list out ALL the filed for col “Name” and “Sex”

How can i go about doing so?

Please advice.

Thanks
