Jump to content

translation box


Psybin

Recommended Posts

Hello all, I'm new here and I'm new at PHP so I hope I don't ask something that is easily found around here.  I'm trying to create a sort of translation box where you type in a word or sentence and it shows images according to the words typed.

 

Example:

 

User types "altitude"

 

Currently all I can do is have it find one word part, such as "alt" or "tude" and display that image with the word.  Also, this way I need an if statement for probably every entry I have, which is over 500.  I'd like to be able to search the db, find any matching word parts, and print each one to form the translation. 

 

User types "altitude"

 

It finds "alt", "tude" and shows alt.gif and tude.gif in order.  If someone can point me in a good direction that would be great.  If you need more details let me know.  Thanks for any help! :)

Link to comment
https://forums.phpfreaks.com/topic/193732-translation-box/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.