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]"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.