quick question

How to use phpmyadmin.... phpmyadmin related arguments. Even phpMyAdmin issues

Moderators: egami, macek, gesf

Post Reply
User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Thu Aug 05, 2004 3:46 am

You´re looking for php's str_replace() and/or nl2br() functions ;)
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Thu Aug 05, 2004 5:40 am

phpMyAdmin does not do any formatting to your records.

The trouble is that you have newlines ("\n") in your text, and you're expecting them to display in your browser as newlines. Browsers don't do that -- you have to use HTML to format your text. If you do View > Source in the browser, you'll see that the newlines are there, they just aren't displayed (because they're not supposed to be). That's where nl2br() comes in. It converts newlines to HTML line breaks so they'll be displayed.
Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests