Hi,
I am trying to remove the line termination characters \r and \n before putting them into mysql database. Is this possible using a php script?
It caused me lots of problems when cutting and pasting text from notepad into a html field which sends information to my database. If there is a \r somewhere in the script then i never see it using phpMyAdmin and I then can't understand when a query doesn't work.
For explain:
ab\r
in phpMyAdmin would appear
ab
The only way I can view this is to make an sql dump file with puts all the values in
"ab\r"
Any ideas would be really appreciated!
Thanks,
James
o.s. I notice this post has come up accurately.....