Mailinglisten-Archive |
wenn schon so, dann:
>
> ja, is ja auch total verhauen!
>
> $games = unserialize($row['games']);
> $query = mysql_query('SELECT distinct * FROM games ORDER BY
> games_name');
> while($rows = mysql_fetch_assoc($query))
> {
> $games_id = $rows['games_id'];
> $games_name = $rows['games_name'];
> if ( is_array($games) && in_array($rows['games_id']) )
if ( is_array($games) && in_array($rows['games_id'], $games) )
> {
> $select = 'selected="selected"';
> }
> else
> {
> $select = '';
> }
> echo "<option $select value=\"$games_id\">$games_name</option>";
> }
>
>
--
Jan Heppe
http://www.afvm.de/
php::bar PHP Wiki - Listenarchive