K
K
kupurim2018-11-19 19:33:19
MySQL
kupurim, 2018-11-19 19:33:19

How to properly implement a table for such data?

Hello.
How to properly create a table for such data -

Picture
fdca272a8c.jpg

For each icon, make a boolean has_chat, has_email, etc. column.
And then output? The problem is that for the output, the icon looks like
<span><i class="fa fa-comments-o" aria-hidden="true"></i>Live-чат</span>

Trying to teach the visual editor to understand them, or what is the best way to do it?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artemy, 2018-11-19
@kupurim

The table is like this, and the display through css can be hidden and shown depending on the flag. In a span, for example, you can add an attribute with a flag value and do display: block

A
Andrey Skorzhinsky, 2018-11-21
@AndyKorg

5bf51f734a8de242396616.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question