Formatting result in table format via php

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