Page 1 of 1

entering data in forms

Posted: Wed Feb 22, 2006 10:23 am
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??

Posted: Wed Feb 22, 2006 10:25 am
by s.dot

Posted: Wed Feb 22, 2006 10:27 am
by ambivalent

Posted: Wed Feb 22, 2006 1:18 pm
by Christopher

Code: Select all

$row = $db->fetch();
$text = nl2br($row['text']);