View Single Post
Old 04-22-2009, 09:39 PM   #1 (permalink)
oMIKEo
The Contributor
 
oMIKEo's Avatar
 
Join Date: Jan 2008
Location: Leeds
Posts: 52
Thanks: 7
oMIKEo is on a distinguished road
Default Language database

Hi guys,

I've got a table of fields for translations but am looking for an effective way to display them all in a form and update them.

The table looks like:

LANGUAGES
id
language_name
translation1
translation2
translation3
etc

How would i output the all these with a title and an input textbox without having to do this:

PHP Code:
$thome $row["thome"];
$tevents $row["tevents"];
$tvenues $row["tvenues"];

echo 
$thome.'<input type="text" name="thome" id="thome" />'.
$tevents.'<input type="text" name="tevents" id="tevents" />'.
$tvenues.'<input type="text" name="tvenues" id="tvenues" />'
That is going to be a huge list, plus that doesn't even include an input value which means even more work and there would be a huge list to save the inputed/edited text. Any ideas how to approach this would be great.
Send a message via MSN to oMIKEo
oMIKEo is offline  
Reply With Quote