Jump to content

How can I find a name from one table in a text from another table?


Recommended Posts

Hi,

 

I'd be very thankful if anyone could help me with this.

 

 

I have one table with a description field and other info, and I also have another table with a list of names and picture url:s.

 

When I display the text description on my site I'd like to know if there are a match with a name from the 'names' table in the text.

 

 

Example:

 

 

Table1

------

description="this is a sample text that includes the name Bill Gates"

 

 

Table2

------

name="Bill Gates"

picture="billgates.jpg"

 

 

In this example there is a match as Bill Gates is found in the text. Then I'd like to display the image of Bill Gates.

 

Please let me know if you can help me with this as I'm totally lost.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.