Text for Select, in MSLA2 - Multiple Select Lists

Place for comments, problems, questions, or any issue related to the JavaScript / PHP scripts from this site.
melmdoost
Posts: 20

Text for Select, in MSLA2 - Multiple Select Lists

Hello,
I have a question:
This script ( https://coursesweb.net/php-mysql/filter- ... t-lists_s2 ) uses the column names in the database tables for the <select> text: site, menu, categ, link,...
How can I display a different name? (for safety)?

Admin Posts: 805
Hello,
I just made a new version of that script, which has this feature to set the text for drop-down select lists. Download it from the site and see the Installation instructions.

- To set the text that is displayed in front of each <select> list, edit data of the $col_sel array:

Code: Select all

// HERE add the columns that will be used for <select> lists,
// and the Text that will be displayed to the <select> associated to each column ('column_name'=>'text')
$col_sel = array('site'=>'Sel:site', 'menu'=>'Sel:menu', 'categ'=>'Sel.3');

Similar Topics