Answer the question
In order to leave comments, you need to log in
How to store multiple values in 1 column?
There is a category selection when adding material, it was necessary to make a multi -selection
in the form of writing
<select multiple="multiple" name="post_category[]" class="form-control" id="post_category">
Answer the question
In order to leave comments, you need to log in
You don't know what data normalization is. The design of relational databases requires that the data be as primitive as possible.
I recommend rethinking the structure of the database and reading this material.
1. You need to look at the data saving code.
Apparently, it is simply not provided for saving 2 or more categories
2. It is necessary to think about the data storage structure and data output.
Simply changing the html will not be able to assign material to multiple categories.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question