Welcome Guest, Not a member yet? Register   Sign In
Text field from the database is being truncated when sent to view
#1

[eluser]stuart_g[/eluser]
I have an odd problem. I store the page content in a MySQL database, and the users edit the content using TinyMCE WYSIWYG editor. The controller selects the appropriate row from the table for a page, and sends the stored HTML code to the view.

This has worked fine for over a year.

I've had to create a very large page, and now the view used for the public facing page is truncating some of the content. Yet the WYSIWYG editor still shows all the content after I've saved it and gone back to edit the same page in the administration side.

The public facing view is simply:

Code:
<?=$breadcrumbs?>
<? foreach ($query->result() as $row) { ?>
    <h1>&lt;?=$row->title?&gt;</h1>
    &lt;?=$row->body?&gt;
&lt;? } ?&gt;

Any help appreciated.


Messages In This Thread
Text field from the database is being truncated when sent to view - by El Forum - 05-20-2010, 05:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB