majocmatt Posted July 21, 2007 Share Posted July 21, 2007 I have a database full of user input, some users enter in URLs.. when I display this information, I would like to go through the text, look for URLs and turn those into real hyperlinks... so I need to take http://www.whatever.com and make it a real hyperlink. Am I in the right place? If so, how would I go about doing this? I am using php/mysql and I would like to simply wrap a function around, for instance, my $output variable which holds the data retrieved from a user input. Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 21, 2007 Share Posted July 21, 2007 str_replace function Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.