Rory O'Connor <[EMAIL PROTECTED]> wrote:
> $sql2=str_replace("","\n",$sql2);
> $sql2=str_replace("","\r",$sql2);
you've got the first two arguments backwards.
$sql2=str_replace("\n","",$sql2);
$sql2=str_replace("\r","",$sql2);
or with php4.0.5 (or later):
$sql2=str_replace(array("\n","\r"),"",$sql2);
for more details:
http://www.php.net/manual/en/function.str-replace.php
jim
--
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]