miniu Posted March 10, 2010 Share Posted March 10, 2010 I have a dropdown menu that shows this informations below: How can i make them ORDER by dname? <option value="<?=$row_game->gid;?>" <? if($game_id==$row_game->gid) echo "selected='selected'"; ?>><? echo $row_game->league_name.'=>'.$row_game->dname.'=>'.$row_game->htname.' VS '.$row_game->atname;?></option> Link to comment https://forums.phpfreaks.com/topic/194714-sort-by/ Share on other sites More sharing options...
trq Posted March 10, 2010 Share Posted March 10, 2010 Assuming $row_game holds a database record you would sort your data within your query. Link to comment https://forums.phpfreaks.com/topic/194714-sort-by/#findComment-1024001 Share on other sites More sharing options...
miniu Posted March 10, 2010 Author Share Posted March 10, 2010 works, thank you Link to comment https://forums.phpfreaks.com/topic/194714-sort-by/#findComment-1024005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.