I need to store the value of about 20 different fields into MySQL. They needs different supported length. Some of them are numbers, some of them have only one character as their value, and some others may need a space as big as text data type in MySQL.
I have 2 choises:
1- Storing all of these values as an array into one record of tables using PHP Serilalize() function (Save PHP array to MySQL?). In this case I need only one field with text data type.
2- Storing these values in a new table inside relational database. But in this case I need different rows that I am not sure about the value that must be stored in them. So I must assign text data type for all of them to support maximum values.
I'm sorry if I could not say my mean completely.
What is your suggestion for this case ?