Answer the question
In order to leave comments, you need to log in
How to parse a record from a database written as an array?
Greetings!
The data from the array is written to the database.
The result is an entry in the database:
"back_color":"#ffffff" is the color.
color_dunkle":"0" is the value of the radio button. If 1 - Show, if 0 - Don't show.
In the frontend it is displayed on the html page in smarty using the $v.editable_page_theme_config variable:
{"back_color":"#ffffff","color_dunkle":"0"}
{foreach name="editable_page_list" item="v"}
{$v.editable_page_theme_config}
{/foreach}
Answer the question
In order to leave comments, you need to log in
This data representation format is called JSON, most programming languages out of the box can work with JSON. In the case of the php language, you need to use the json_decode () function
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question