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

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
aybra
Forum Commoner
Posts: 56
Joined: Sun Nov 24, 2002 12:52 am

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

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you might use string trim ( string str [, string charlist]) to get rid of \r and \n
Post Reply