Welcome Guest, Not a member yet? Register   Sign In
database item containing CI code
#1

[eluser]Ajaxian64[/eluser]
Hello
I have an table in a database in which I have a column: 'article'
In this article I store pure Html code and also CI code.
For instance I store text with anchor, images .. and so I use CI helper code (html, url...)

In my controller I get the contain of the article from DB, and send it to the view.
In the view, I do
Code:
<?php echo $article->row()->contain; ?>

But when I display the contain of this article, html si correct but the CI code is not interpreted.

Is there a mean to store in database CI code which can be interpreted when displayed in a view ?


Messages In This Thread
database item containing CI code - by El Forum - 07-16-2010, 07:04 AM
database item containing CI code - by El Forum - 07-16-2010, 07:10 AM
database item containing CI code - by El Forum - 07-16-2010, 07:16 AM
database item containing CI code - by El Forum - 07-16-2010, 07:44 AM
database item containing CI code - by El Forum - 07-16-2010, 07:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB