Author Topic: Getting info from the database with the additional dropdown box of V@no mod  (Read 2177 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Hello,

The dropdown option mod of V@no is one of the master works of him. I am using it many times on my gallery. Thanks V@no.

[MOD] Dropdown options for custom database fields
http://www.4homepages.de/forum/index.php?topic=7112.0


I want to start a new topic on purpose instead of on the same mod topic, because now we are going now to another level.

My question is:

How can we change the %dropdown_array% array to get information from the database?

$additional_user_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%, %dropdown_array% [, %is_multidimention%, %is_number%, %start_number%, %is_auto%]);

Code: [Select]
$additional_user_fields['user_gender'] = array($lang['user_gender'], "dropdown", 0, array("---", "male", "female"), 0, 1, 5, 0);

For example I want in the dropdown box all the usernames form the database.
Of course I can do it with another way, but I want to use the additional dropdown option.


Many thanks in advance,
Cruxy
« Last Edit: November 23, 2009, 10:59:21 AM by cruxy »