Jump to content

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


hyde

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.

 

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.