From:             [EMAIL PROTECTED]
Operating system: NT
PHP version:      3.0.16
PHP Bug Type:     Scripting Engine problem
Bug description:  string str_replace(string needle, string str, string haystack);

string str_replace(string needle, string str, string haystack);

fails if haystack ends in needle

// str_replace fail if string ends on #..# so ad <space>
$QueryText = "Select count(*) from #TABLENAME# ";

$QueryText = str_replace("#TABLENAME#", "extracts", $QueryText);


echo "The Query was :".$QueryText."<br>";


-- 
PHP Development 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]

Reply via email to