Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by DhL ( 16 years ago )
$game_id = $db->query( "SELECT game_id, long_name FROM gz_games ORDER BY game_id" );
while( $row = $db->get_row($game_id) )
{
$id = $row['game_id'];
$ln = $row['long_name'];
$list .= "<option value=".$id.">".$ln."</option>";
}
$tpl->set('{list}', $list);
//// HTML
<select name="game">{list}</select>
Revise this Paste