Answer the question
In order to leave comments, you need to log in
How to build a table where columns are equal to categories?
Hello.
there are tables:
cat_table
Id
name
obj_table
Id
catId
option
count
Maybe someone has met with such a task, you need to make a table to add records to the database, but the columns themselves must be categories, for which I can change the properties and save all records in obj_table.
catId1 | catId2 | catId3
---------------|----------------|---------------
option | count | option | count | option | count
Answer the question
In order to leave comments, you need to log in
the usual form, it contains inputs and selects of the form
<select name="catId1[option]">
<option value="1">1</option>
<option value="2">2</option>
</select>
<input type="text" name="catId1[value]">
[
catId1 => [option=> 3, value='петя'],
catId2 => [option=> 2, value='Бумбум'],
catId3 => [option=> 1, value='19'],
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question