results to html table
| From: | Kevin Waterson | Date: | Sat, 11 Aug 2007 22:07:50 +0000 |
| Subject: | results to html table | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-260711@lists.php.net to get a copy of this message | ||
I wish to get a result set into a html table.
normally this is not a problem.
But I wish to use one of the results as a heading.
Here is the data... ASCII art warning
+----------------+------------------+-----------------+---------------+
| forum_group_id | forum_group_name | forum_type_name | forum_type_id |
+----------------+------------------+-----------------+---------------+
| 1 | Administration | Photography | 1 |
| 1 | Administration | Site Issues | 3 |
| 1 | Administration | Test | 4 |
| 2 | General | Modelling | 2 |
| 2 | General | foo | 10 |
| 2 | General | bar | 11 |
+----------------+------------------+-----------------+---------------+
The goal is to produce HTML tables like this..
+----------------+
| Adninistration |
+----------------+
| Photography |
+----------------+
| Site Issues |
+----------------+
| Test |
+----------------+
+----------------+
| General |
+----------------+
| Modelling |
+----------------+
| foo |
+----------------+
| Bar |
+----------------+
Kind regards
kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."