• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.

#2
[eluser]Eric Barnes[/eluser]
View the data in the db and confirm it is not truncated.

#3
[eluser]benurv[/eluser]
only one record is truncating ?
you should check the truncated record and let us know what's in it


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.