Computing.Net > Forums > Web Development > Compare 2 Lists of Words

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Compare 2 Lists of Words

Reply to Message Icon

Name: J_Search
Date: February 10, 2006 at 06:39:39 Pacific
OS: n/a
CPU/Ram: n/a
Product: n/a
Comment:

I'm currently working with PHP and MySQL, but I'm not sure how to go about this task. Any suggestions are appreciated.

I'm looking for a way to compare 2 lists of keywords and return the number of matches.

Thanks,

J_



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: February 10, 2006 at 08:14:31 Pacific
Reply:

Are the lists in MySQL? If so, what version? If not, how are they stored? PHP arrays? Text files? If they're in mysql in two different tables, just doing an inner join should work.

More info please!!!

-SN


0

Response Number 2
Name: J_Search
Date: February 10, 2006 at 10:37:20 Pacific
Reply:

I have not entered the data yet. So I'm open to just about anything. Here's what I'm planning.

(this part I have)
html form: user enters url
php: visits url and extracts the keywords and description meta tag values.

(I don't have this)
mysql:[table: 2 columns: column1 & column2]
column1- phrase or one word
colum2- list of keywords relative to column1

Essentially, the php will visit the site, extract the keywords and compare them to the database keywords (column2) counting the number of matches. The php will return the column1 value for the column2 value that returned the most matches.

J_


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Need to make PC look like... Reduce page size



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Compare 2 Lists of Words

PHP. Send Unix command to list of s www.computing.net/answers/webdevel/php-send-unix-command-to-list-of-s/2983.html

Get number of words from string www.computing.net/answers/webdevel/get-number-of-words-from-string/3943.html

how to write this php script www.computing.net/answers/webdevel/how-to-write-this-php-script/2690.html