MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old November 15th, 1999, 06:26 PM
AndrewT
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Well I know that I can use <pre> and </pre> to recognize the line breaks from a MySQL output. But that also prints the " " before the " ' ". So the way I see it, there are two ways of fixing this.

1) Stripping the slashes from it somehow.

2) Using some array that was named something like "n2br". But I can't remember anymore.

So your help would be very appreciated.

Andrew

Reply With Quote
  #2  
Old November 16th, 1999, 12:43 PM
donarb
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
You didn't mention what interface you're using.

If it's PHP, there is a function called stripslashes() that will remove the escaped backslashes.

You also mentioned n2br, there is also a PHP function called nl2br(), which converts newlines to <br> tags.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Lines Breaks


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway