Show us what you have so far.
All you have to do is fetch the data from your database, use a
while
or
for
loop (depending on the method you use) to iterate over the results, and print them out into your desired format.
If you are having trouble doing that, check out the examples for your database type in the
PHP manual. They usually include basic examples to help you get going. - For example, check out
mysql_query to see how it is done using MySQL.