Java Port, need php syn
Posted: Tue Jun 01, 2004 7:35 pm
Can some of you guru's out there shed some light on this task in php?
Coming from mysql DB, have records with white space in there, hard returns. Is there a way in php to capture that whitespace for formatting?
I don't know the php code, this is what I am trying to port from (jsp) however:
<could not use php tags, as it is not php (sorry)>
<%
Clob cl = (Clob)data.get("article_x");
BufferedReader in = new BufferedReader(new InputStreamReader (cl.getAsciiStream()));
String str = null;
while((str = in.readLine()) != null)
{
out.println(str+"<br>");
}
%>
Short version of this is, how do I enter a hard break in html after returning my result set from mysql. Everywhere there is a break in the db I want to do in html, thus to kepp the formatting.
Thanks in advance....
tgaugh
Coming from mysql DB, have records with white space in there, hard returns. Is there a way in php to capture that whitespace for formatting?
I don't know the php code, this is what I am trying to port from (jsp) however:
<could not use php tags, as it is not php (sorry)>
<%
Clob cl = (Clob)data.get("article_x");
BufferedReader in = new BufferedReader(new InputStreamReader (cl.getAsciiStream()));
String str = null;
while((str = in.readLine()) != null)
{
out.println(str+"<br>");
}
%>
Short version of this is, how do I enter a hard break in html after returning my result set from mysql. Everywhere there is a break in the db I want to do in html, thus to kepp the formatting.
Thanks in advance....
tgaugh