11-29-2016, 02:02 PM
This is how I would do it...
For each page, let's say index.php, I would make an index_lang.php
I would select * for the index table in the db (with all the language for that page).
Then I would generate the entire form and all form processing as a foreach loop. Make the column name your label and then echo in the existing text from the db.
It would probably be 15 lines of code to create and update the form for each of the pages and even then, the only thing you'd need to change on each of your lang pages is the table in the select * and update queries.
For each page, let's say index.php, I would make an index_lang.php
I would select * for the index table in the db (with all the language for that page).
Then I would generate the entire form and all form processing as a foreach loop. Make the column name your label and then echo in the existing text from the db.
It would probably be 15 lines of code to create and update the form for each of the pages and even then, the only thing you'd need to change on each of your lang pages is the table in the select * and update queries.