Re: always last
| From: | Chris Hayes | Date: | Sat, 25 Aug 2001 01:12:31 +0000 |
| Subject: | Re: always last | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64357@lists.php.net to get a copy of this message | ||
Van: "Andrey Hristov" <andy@icygen.com>
Aan: <php-general@lists.php.net>
Datum verz. Thu, 23 Aug 2001 18:33:53 +0300
Onderwerp: Re: [PHP] always last
> Use a counter when fetching from the DB
> if you use while the
> $counter=0;
> while(list(...)=mysql_fetch_array($res)){
> $option_block .= '<option '.(($counter==0)? '
> selected':'').'>'.$option.'</option>';
> }
How then would he find the team back?
--------------------------------------------------------------------
-- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
--------------------------------------------------------------------