Page 1 of 1

Not sure if this should be here or DB's....

Posted: Thu Dec 12, 2002 8:35 pm
by aybra
When I enter fields into my MySql database using the php program I wrote, they also have the \r\n tags added too, wich for reporting the fields is no big deal, but using the password and user name validation, or even using the paramaters to auto setup accounts dosnt work because it adds it almost like code......

If I'm not clear let me know, if I am, can you help me?

I add....

Code: Select all

<?php
(var1, var2, var3),
VALUES ('$var1','$var2',.....);
?>
and get
\r\nvar1
\r\nvar2
\r\nvar3
..........
maybe that helps.....


thanks

Posted: Thu Dec 12, 2002 11:35 pm
by volka
you might use string trim ( string str [, string charlist]) to get rid of \r and \n