> $variable = This is the data.This is the data.This is
> the data.This is the dataThis is the dataThis is the
> dataThis is the dataThis is the dataThis is the
> dataThis is the dataThis is the data
> This is the dataThis is the dataThis is the data
>
>
> This is the; da;taThi's is the dataThis is the
> dataThis is the data
>
> This is the dataThis is the dataThis is the dataThis
> is the data
>
>
> I mean to say taht it is kidof formatted with REturn
> character, space characters, ', ; and a lot many
> characters...
>
>
>
>
> Now my question is that. If I store the variable in
> MYSQL dataabse under a particular filed TYPe varchar
> or TEXT.
>
> It doesn't bring up the same kind of format like it
> was when it was stored..
>
> Is there any way I can get the same output like I
> stored it.?

Use http://php.net/addslashes maybe...
If it's varchar(XX) and your string is longer than XX, you will lose the end
of the string.
If you're not sure how long it might be, just use TEXT in MySQL.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to