I am trying to make a module and I use CTLModuleMaker. I need some help. Do anyone know how to change the order the pull down menus in the admin section (Edit item). Now is set alphabetical order by name. I would like to set it to id order. So my menu look cleaner.
I am a little confused what to change. I only know basic PHP
I had a look a this page http://www.ctlmm.com/blog/12/Dropdown-f ... betically/
I am still confused, Here is the code I tried changing
Can anyone help.
Code: Select all
$dbresult = $db->Execute("SELECT `$value_field` thelabel, `$value_field` thevalue FROM $tablename ORDER BY `$id_field`");