I have a table in database namely 'reg' with columns date and name. I want to select the name column and month_name and year from date column and create a corresponding html table with columns (serial number, name, month, year). How do I do this in PHP?