Jump to content

[SOLVED] Really quick question


Sinikka

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.