A
A
Artur Kohut2014-11-26 23:26:06
MySQL
Artur Kohut, 2014-11-26 23:26:06

How to store word forms in the database?

Hello.
It is necessary to dynamically display the ingredients for the recipe depending on the selected number of servings.
For example,
1 large apple, 2 medium apples, 29 small apples,
1 cup flour, 2 cups flour.
At the same time, there is a table with the ingredients themselves and there is a `weight` table with unit => gram conversion (1 medium apple = 200 grams).
Where and how best to store word forms?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-11-27
Protko @Fesor

it would be more convenient to process this during output and have a separate base of word forms.
habrahabr.ru/post/230393

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question