Displaying data from a mysql database

Reply

Join Date: Dec 2007
Posts: 14
Reputation: webguru07 is an unknown quantity at this point 
Solved Threads: 1
webguru07 webguru07 is offline Offline
Newbie Poster

Displaying data from a mysql database

 
0
  #1
Jun 7th, 2008
Hi,

I am making a mailing program and the problem i'm having is that I want to display the message exactly as it is entered for example, when the sender presses enter for a new line the reciever see's it.

I have thought of using <pre></pre> tags but if the sender doesn't enter a new line the message will spread on 1 line.

Thank you
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 6
Reputation: fenixZ is an unknown quantity at this point 
Solved Threads: 1
fenixZ fenixZ is offline Offline
Newbie Poster

Re: Displaying data from a mysql database

 
0
  #2
Jun 7th, 2008
Why don't you use this little function nl2br ?? Turs new lines into HTML new lines....
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 538 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC