All my data are fetch from the database and I echo each data in table format using while loop. The html table looks like this:
| name | date_from | date_to |
+=======+===========+=========+
|....Marv......|....2010-01-03...|.2010-01-07...|
|....Marv......|....2010-01-11...|.2010-01-15...|
|....Marv......|....2010-01-23...|.2010-01-29...|
What I want is to only display the name once so that it will not be repetitive for example:
| name | date_from | date_to |
+=======+===========+=========+
|....Marv......|....2010-01-03...|.2010-01-07...|
|.................|....2010-01-11...|.2010-01-15...|
|.................|....2010-01-23...|.2010-01-29...|
Any idea on how can this be done? Sample code is much appreciated. Thanks