Sinikka Posted November 7, 2007 Share Posted November 7, 2007 I can't figure out how to incorporate a "selected" into this so everytime they go back to the page it doesn't default back to the first in the list. Can anyone please help? $getavies = mysql_query("SELECT * FROM avatar WHERE user_name = '$userid' AND game = '$game' ORDER BY avatar_id"); while ($getavies2 = mysql_fetch_array($getavies)) { $get_avies = fetch("SELECT * FROM avatar2 WHERE id = '$getavies2[avatar_id]' AND game = '$game'"); $itemList .= "<option value=$getavies2[avatar_id]>$get_avies[avatar_name]"; } Link to comment https://forums.phpfreaks.com/topic/76397-solved-really-quick-question/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.