What the above script does is to set rules to display our
database-retreived record fields in appropriate columns in the HTML
tables. These rules will be stored in $replacement_rules array
as defined above.
The elements of $replacement_rules array simply let our script know
how to "fill in the blanks".
The variable : $recordset_array is a 2-dimension array that contains
records which we retrieved from database.
+---------------------------------+
| Alvin | Block 112 Bedok Road |
+---------------------------------+
| Robert | 23 Livingstone Road |
+---------------------------------+
:
:
+---------------------------------+
| John | 556 Everton Park Road |
+---------------------------------+
Line 10 (and line 11) of the code simply is a "rule" that instructs
PHP script to replace occurances of the string <!--NAME-DATA-->
with FIELD 1 (array is "zero-based") of the recordset provided
in $recordset_array array.