On Sun, 2007-08-12 at 08:07 +1000, Kevin Waterson wrote:
> 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|
> ++
$types )
{
echo ''
.''
.''
.$forumName
.''
.'';
foreach( $types as $type )
{
echo ''
.''
.''
.$type['forum_type_name']
.''
.'';
}
echo '';
}
?>
Cheers,
Rob.
--
...
SwarmBuy.com - http://www.swarmbuy.com
Leveraging the buying power of the masses!
...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php