flemingmike Posted March 12, 2009 Share Posted March 12, 2009 hi all, ho can i make 2 drop down boxes. this is my first one which auto selects the logged in user's account. i need the second one to have all the users listed in it. <tr bgcolor='$config[altcolora]'> <td width='40%' valign='center' align='left' background='$config[cellbg]'>Your ID</td> <td width='60%' valign='center' align='center' background='$config[cellbg]'> <select class='button' name='login[id]'>"; $teams=mysql_query("SELECT teamid FROM membersteams WHERE memberid='{$_COOKIE['tid']}' AND position < '4'"); while(list($teamid)=mysql_fetch_row($teams)){ $name=mysql_query("SELECT name FROM teams WHERE id='$teamid'"); $name=mysql_fetch_array($name); $out[body].="<option value='$teamid'>ID $teamid | $name[name]</option>\n"; } $out[body].="</select> </td> </tr> Link to comment https://forums.phpfreaks.com/topic/149170-need-phpmysql-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.