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
Hi!
$sql2=str_replace(,\n,$sql2);
$sql2=str_replace(,\r,$sql2);
well that was easy:
manual:
string str_replace (string needle, string str, string haystack)
and you did:
str_replace (string str, string needle, string haystack)
So better try
2 matches
Mail list logo