P
paul814
I have a MYSQL DB that people enter data into through a multiline
textbox, and then i display the data on a search results page. Here
is how I display it:
while($row=mysql_fetch_object($rs)){
print "<div class=\"message\">";
print " <h3>" . $row->itdate . "</h3>";
print " <h5>" . $row->itname . "</h5>";
print " <h4>" . $row->itcomments ."</h4>";
print "############### END OF RECORD ###############";
print "</div>";
}
this however does not display line breaks, everything runs on, can I
do something so that line breaks are displayed and my data is
displayed just like it was entered?
thanks.
textbox, and then i display the data on a search results page. Here
is how I display it:
while($row=mysql_fetch_object($rs)){
print "<div class=\"message\">";
print " <h3>" . $row->itdate . "</h3>";
print " <h5>" . $row->itname . "</h5>";
print " <h4>" . $row->itcomments ."</h4>";
print "############### END OF RECORD ###############";
print "</div>";
}
this however does not display line breaks, everything runs on, can I
do something so that line breaks are displayed and my data is
displayed just like it was entered?
thanks.