Hi,
I have been trying to take some info from a MySQL database and use that as target criterion to hyperlink each occurance to another page.
For example if I were to be doing this with country names it would be like this:
The database:
id country_name
1 Afghanistan
2 Albania
3 Algeria
the text:
"I traveled first to Afganistan then move to Albania but I decided to settle in Algeria."
Output:
"I traveled first to <a href="countryinfo.php?id=1">Afganistan</a> then move to <a href="countryinfo.php?id=2">Albania</a> but I decided to settle in <a href="countryinfo.php?id=3">Algeria</a>."
By the way, the text is also saved in the MySQL database.
Any help would be appreciated.
Thanks,
Victor