|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP and MySQL
I do not know if this is the right place to ask the question,
but I do not know where else to post it. I made a MySQL database with an English word, and its Dutch and Spanish translation. For each word there is some additional information stored, such as which article is used etc. Now I want to make a searchscript with PHP, but I do not know where to start. I want to make a drop down list where users can choose: English --> Dutch English --> Spanish Spanish --> English etc. And of course an textfield where users can enter the word they are searching for. As a result I want all the information for the specific output language, but of course not the rest of the information stored in the database. Does any one know if this is possible? And where I can find examples or so? Thank you! |
|
#2
|
|||
|
|||
|
I don't know your programming capability; but I'll start with this,
First set up a form that asks for the language to translate from and the language to translate to. Then ask for the word the user wants translatated. When the user submits the form you run a query something like: " SELECT $TranslateTo FROM TranslationsTable WHERE $translate_from = '$word'"; For instance: "SELECT Spanish FROM TranslateTable WHERE English = 'Soup'"; You would then use normal php methods to print the results |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > PHP and MySQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|