|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Lines Breaks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|