I'm trying to hack a part of a plugin that does a database call, and then creates a drop down menu. I'm stumped, and if anyone has any ideas, I'd really appreciate it.
The code is as follows:
Text Formatted Code
function loc_makeSelection ($uid)
{
global $_TABLES;
$retval = '';
$loc = loc_getAll ();
$grplist = loc_getGroups ($uid);
$name = array( $loc );
$location = '<option value=\"loc_select\">' . $name . '</option>';
$retval .= '<select name="loc_select">';
$retval .= $location;
$retval .= '</select>';
return $retval;
}
I now have a drop down menu that displays only "array". It seems to not be getting the value of $loc, but in another function, it works just fine. If you need the code to see where I'm getting $loc, I'll post it too.
Anyone have any ideas?