Re: Advice/opinion requested on page section lineup
| From: | Richard Lynch | Date: | Mon, 14 Feb 2005 18:03:37 +0000 |
| Subject: | Re: Advice/opinion requested on page section lineup | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208666@lists.php.net to get a copy of this message | ||
Alp wrote:
> I would like to be able to alter the lining-up of several sections on a
> php
> generated webpage. What would be the best/optimal approach in achieving
> that?
>
> As an example "sections" referred to are mostly tables generated via code
> on
> data obtained from a DB. Should I name them (somehow), shall I use a
> seperate table to store the lining-up information or shall I add a
> "precedence" integer column to each relevant table in the database, ...?
I would simply add a 'rank' field in the table, and use "order by rank" to
do what you described in later posts in this thread.
--
Like Music?
http://l-i-e.com/artists.htm