Lukket

Replace text with links in doc

Given a table in Mysql with 2 fields key phrases (some are 1 word keywords, others are 2,3 or more words), and urls, I want a function in PHP, that will replace any key phrases in the document with a link of that text, and the url in the table.

Just create links for those words. The only trick here is that some words might appear in the key phrases more than one time and they can only be used for one link, example:

text:

"In the world of cars, the most desired cars are the ones ..."

keywords - urls:

cars - [url removed, login to view]

desired cars - [url removed, login to view]

In the example, bigger phrases have priority, so the first instance of cars should be replaced with the first link, BUT the second one, because bigger key phrases have priority, should replace desired cars for it's link, and NOT the link for cars. Checked attached document for an html example.

This project should not take more than a couple of hours of programming for a regular programmer, so I would like to see bids for $30 or less.

thank you

Færdigheder: PHP

Se mere: www cars com, priority one, function in programming, cars com, programming in php, programmer world, trick, to doc, replace, projectar, less bids, desired, php priority, text html php, php html text, html table text table, replace text html, key words phrases, create text, html text replace, mysql create table fields, text table, link replace, word table html, project links

Om arbejdsgiveren:
( 13 bedømmelser ) Aventura, United States

Projekt-ID: #49758