Welcome Guest, Not a member yet? Register   Sign In
How do I save anchor links in MySql DB ?
#7

[eluser]TWP Marketing[/eluser]
Ok, I see now what you are asking.
I can think of a way which night work, but I have not tested it.
You may be able to save the html code itself, not the CI code, but the raw html code.
For example, this is how the text would appear in the html document:
Code:
...
mary had a little <a href="http://yoursite.com/controller/function" title="click here to learn more about lambs">lamb</a>.
...

The whole string can be stored in a varchar or text field in the db, but be sure to properly escape the html code itself. That means using & lt: and & gt; for the carats and escaping the slashes in the URL.
You MIGHT need to experiment with htmlspecialchars().


Messages In This Thread
How do I save anchor links in MySql DB ? - by El Forum - 07-21-2012, 09:16 AM
How do I save anchor links in MySql DB ? - by El Forum - 07-21-2012, 11:05 AM
How do I save anchor links in MySql DB ? - by El Forum - 07-21-2012, 08:23 PM
How do I save anchor links in MySql DB ? - by El Forum - 07-21-2012, 08:35 PM
How do I save anchor links in MySql DB ? - by El Forum - 07-21-2012, 08:41 PM
How do I save anchor links in MySql DB ? - by El Forum - 07-21-2012, 09:45 PM
How do I save anchor links in MySql DB ? - by El Forum - 07-22-2012, 09:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB