My site is a kid-based gaming site. I don't want users to be able to enter bad words. I don't want a filter that censors them, but one that if a bad word is found, redirects them to a Filtered Word page. On my previous one, words like hello or assassin got blocked because they had swear words in them, which I don't want this one to do.

Thanks, Chosen13.

Try using a MySQL search query, like

$query = "select * from message WHERE Value='$search'";

Just a suggestion, it worked for me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.