SyntaxFix
Write A Post
Hire A Developer
Questions
$result2 is resource link not a string to echo it or to replace some of its parts with str_replace().
echo
str_replace()
http://php.net/manual/en/function.mysql-query.php