# Display text

**URL:** https://forum.kirupa.com/t/display-text/174052
**Category:** Uncategorized
**Created:** [January 2, 2006, 12:00pm UTC](https://forum.kirupa.com/t/display-text/174052 "2006-01-02T12:00:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://forum.kirupa.com/u/abhishek1)
#### Post date: [January 2, 2006, 12:00pm UTC](https://forum.kirupa.com/t/display-text/174052/1 "2006-01-02T12:00:10Z")

</div>

hi,  
can any 1 tell me how to display text in same format as it is stored in database.  
i m putting some details of user in my database using text area.

for ex:-  
Name=abc  
sirname=xyz

but when i retreive the data from database and display it,it comes like this:-  
Name=abcsirname=xyz.

i want it in same format (as it was entered in database) like:-  
Name=abc  
sirname=xyz.

can any1 spread some light on it.  
i m using PHP4 with mysql and apache as webserver and Smarty templates.

it’ll b good if ne1 can tell me hw to find a line break in a text frm text area.

This kind of thing  
if(linebreak)  
abc  
else  
xyz

thanx and regards:flower:
