So my question is kind of confusing. I'm not a very strong coder.
I hope this makes sense. This website is someone else's work, so i'm trying to add to it.
I'm trying to make a dropdown box that pulls results from a database. If anything looks wrong, please tell me. I cannot seem to get any reults except for a blank dropdown box.
(aps2_get_user_role($_SESSION['uid']) == APS_ADMIN) {
$return .= '<br/><select>';
$selvalue .= 1001;
$result5 .= @mysql_query("SELECT * FROM aps2_users WHERE role = '1001'");
while($urow = @mysql_fetch_array($result5, MYSQL_ARRAY)){
$return .= '<option value="test">test</option>';
$usrid .= $urow['uid'];
$usrname .= $urow['username'];
$return .= '<option value="' . $usrid . '">"' . $usrname . '"</option>';
}
$return .= '</select>';
$return .= $result5;
}