Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Text from mysql database...

Featured Replies

Heya,

 

Pretty simple question!

 

I have a field in my MySQL database which is the post content from a phpbb forum. I want to display this on an external site. So, quite simply I query the database to find the post I want.

 

Once I have this, I store it in a variable. Which then I echo it back where I want.

 

The problem I am getting is this:

 

If the post the person made, has line breaks like this:

 

This is some text.

 

And this is a line break.

 

It will get stored in the database with a line break.

 

Although when I echo it back out, it appears like this:

 

This is some text.And this is a line break.

 

Does anyone know of any way, where I can get it exactly the same format as it is on the post?

 

Cheers

  • Author

Aha, thank you, works perfectly :) Never even heard of that before D:

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.