I have a website in three languages.
What is the best way to structure a database?
1) Create 3 tables, one for each language (for example, Product_en, Product_es, Product_de) and extract the data from the table with the identifier:
eg. on the php page I have a line:
$language = 'en'
so I only get data
SELECT FROM Product_$language
2) Create 1 table with
ID LANGUAGE NAME DESCR
and publish only on the page
WHERE LANGUAGE = '$language'
3) Create 1 table with
ID NAME_EN DESCR_EN NAME_ES DESCR_ES NAME_DE DESCR_DE
Thanks!
source share