This script reads data from a text file and writes it to a dynamically-created table. The script will accept data arranged in up to 26 columns which should be sufficient for all practical purposes. Maintenance of the table simply consists of updating the values in the database teams.txt. As the page loads the table is sorted automatically according to the value in the far right column.
(Note - the above data is from the FA Premiership 12/2/2001)