I am a little blank about the next thing. I am afraid I am not approaching the problem like it should. I have a multidimensional array to show editors in a custom cms. It looks like this:
$options = array(
array("template","Design skelet","Selecteer het gewenste design","text","false",array("front","content","subcontent","action","special","system"),"true"),
array("is_menu","Menu item","Selecteer de gewenste plaats in het menu","select","false",$catch_menu_sec['alias'],"true"),
array("category","Pagina categorie","Voeg hier de pagina naam in","text","false","","true"),
);
The $options are stored like this:
$option[0] = database value.
$option[1] = readable value for frontend in the cms.
$option[2] = description for the cms user.
$option[3] = type of editor (textarea, text or select)
$option[4] = if the editor has special options.
$option[5] = **where the problem is. Here are the values stored for the options for the select input.
$option[6] = if the field is shown in the cms.
Right now i have a problem with $option[5]. I want to retrieve database values, so that I can get a dropdown list for every menu item in the database. $option[5] is used to create a secundair menu or even tertaire, where you can select the menu item where it should be a child of.
the html output I want it to be is like this:
<select name="is_menu">
<option name="true">True</option> <- basic option to set it in primair menu, coming from the array
<option name="false">False</option> <- basic option, coming from the array
<option name="home">Home</option> <- database value, coming from the array
</select>
I know i cannot place while or foreach loops in an array, but how can i approach this problem otherwise?
Thanks in advance!
PS: I have basic knowledge of PHP within this area, so don't be harsh on my bad explantion please :)
$option[1][5])