I run a PHP site ..

Say i create a database that has one column say NAMES: its values are JHON etc. Now i need a code that can be put on my website and when a user visits the page and if the page has got JHON on it. It converts it into a hyperlink?

Basically some code that calls my database that has NAMES and Fetches all the Name that it has and converts it into a hyperlink.