layout of my info extracted from a mysql database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ridwan
Forum Commoner
Posts: 55
Joined: Thu Aug 22, 2002 3:15 am

layout of my info extracted from a mysql database

Post by ridwan »

when i display information which has been pulled from a mysql tables field it displays everything as one heap, even though the information in the fields are formatted nicely.

is there a method i can use to get my info to be laid out correctly within the php page.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Do you mean that newlines are missing? If so try nl2br().

Mac
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

do you mean nicely

Post by phpScott »

If you are looking for the display to be well presented then you will have to start coding in formatting like html or c style spacing and tabs.

phpScott
Post Reply