Jump to content


Photo

Div Problem


  • Please log in to reply
3 replies to this topic

#1 arunpatal

arunpatal

    Advanced Member

  • Members
  • PipPipPip
  • 273 posts

Posted 15 November 2012 - 07:43 PM

Hi, the entered data in database is like this

Hello,
How are you today..
What are you doing today...

But when i echo this variable it shows like this

Hello, How are you today.. What are you doing today...

how can i solve this?

<?php
    if(isset($details1)) {
echo "
<br />
<div id='detaildisplay_box' style='overflow: auto;'>$details1</div>
<br />";
}
?>


#2 kicken

kicken

    Wiser? Not exactly.

  • Gurus
  • 2,774 posts
  • LocationBonita, FL

Posted 15 November 2012 - 07:54 PM

nl2br
Recycle your old CD's, don't trash them!
Did I help you out?  Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7

#3 Pikachu2000

Pikachu2000

    I hate everything.

  • Staff Alumni
  • 11,378 posts
  • LocationFuture Independent Republic of Texas
  • Age:106

Posted 15 November 2012 - 07:54 PM

nl2br
"Java" is to "Javascript" about the same as "fun" is to "funeral".

Why $_SERVER['PHP_SELF'] is bad. || Why ORDER BY RAND() is bad || Every problem can be solved with rm -rf *

Random Quote: "

#4 arunpatal

arunpatal

    Advanced Member

  • Members
  • PipPipPip
  • 273 posts

Posted 15 November 2012 - 07:59 PM

Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com