entering data in forms

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
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

entering data in forms

Post by psychotomus »

i entered data in a form with multi-lines into a sql database like

"All your looks
and all your words
cant fill enough books
or fill enough worlds
of how much you mean to me

with just your smile
you can fill my life
with just enough joy
to last longer then awhile
but for an eternity of a lifetime

your so close to me
its to true to be
that not even i can resist
to admit that this really exist
that im falling in love with you
when i never thought something like this would feel so true"


and it came out like this when retreived from the sql database

"All your looks and all your words cant fill enough books or fill enough worlds of how much you mean to me with just your smile you can fill my life with just enough joy to last longer then awhile but for an eternity of a lifetime your so close to me its to true to be that not even i can resist to admit that this really exist that im falling in love with you when i never thought something like this would feel so true "


suggestions? i need it multilined??
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Post by ambivalent »

User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Code: Select all

$row = $db->fetch();
$text = nl2br($row['text']);
(#10850)
Post Reply