Welcome Guest, Not a member yet? Register   Sign In
Working with Clobs
#4

[eluser]imorris[/eluser]
The problem was that I needed to adjust how I was echo-ing out the DESCRIPTION result in my loop. I needed to change it from:

Code:
<td>&lt;?php echo $app->DESCRIPTION;?&gt;</td>

to
Code:
<td>&lt;?php echo str_replace("\r", "<br/>",$app->DESCRIPTION->load());?&gt;</td>

We added the str_replace because we wanted to keep the carriage returns that weren't displaying properly from the clob.

Can someone tell me what the ->load() method is doing in this situation and why this works?


Messages In This Thread
Working with Clobs - by El Forum - 09-23-2010, 03:01 PM
Working with Clobs - by El Forum - 09-23-2010, 03:29 PM
Working with Clobs - by El Forum - 09-24-2010, 09:34 AM
Working with Clobs - by El Forum - 09-24-2010, 12:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB