Welcome Guest, Not a member yet? Register   Sign In
wrap anchor tags around links in the database
#2

[eluser]CroNiX[/eluser]
I wouldn't. I'd store the raw url and wrap the <a> tags around it when displaying it in the view.
Code:
if (strpos(strtolower($url), 'youtube.com') !== FALSE)
{
  //$url is from youtube.
}


Messages In This Thread
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 09:07 AM
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 10:18 AM
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 07:17 PM
wrap anchor tags around links in the database - by El Forum - 04-20-2012, 08:18 PM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 07:36 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 10:11 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 10:30 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 10:35 AM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 02:15 PM
wrap anchor tags around links in the database - by El Forum - 04-23-2012, 02:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB