I want to extract a link from a string for example:
If someone writes,
Hi, checkout my website http://www.ask.com which is fantastic.
Now this above is a string, which i am storing in MySQL database but i want to convert http://www.ask.com into a link so that when i click on it, it should link to this website.
I am using PHP and MySQL.
On my website, for example, when I get a feedback, sometimes people write their website links, so when I view them, i have to copy and paste the link into the browser as I am not able to click on this string, instead when i view the feedbacks, i should be able to click on the links.
So how do i convert this part of the string into a link?
2006-07-05
08:11:23
·
7 answers
·
asked by
Manish
5
in
Computers & Internet
➔ Programming & Design
An example,
When you type a plain text email and include a link as well, when a viewer opens this email, this link which was in text is automatically converted into a link. How?
2006-07-05
08:15:48 ·
update #1
Don;t answer me by saying insert 2006-07-05
08:25:39 ·
update #2
None of the answers helped so far.
Anyways, i found the way and it is working perfectly ok so far.
2006-07-05
08:47:07 ·
update #3