Mastering PHP: Fetching a PostgreSQL table and displaying it beautifully

The PHP Manual teaches the rudiment of getting a dataset from a PostgreSQL database. I followed it. Although it was successful, I was not satisfied with the way the dataset was presented over the web page: No information as to what the table is all about, no table heading, no border, the numbers were not aligned to the right, and no aggregate information (i.e., sumtotal). That gave me an overnight challenge (yes, I burned the midnight oil) to return the dataset with the problems cited solved. Success!

Look at the code I wrote: pgconnect2.pdf

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s