Jump to content

Need PHP/MYSQL Help!


flemingmike

Recommended Posts

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

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.