Location: PHPKode > projects > WH Community > wh_community/functions/badwords.php
<?php

	function delBad($msg) {
        $sql = mysql_query("SELECT * FROM badwords;") OR die(mysql_error());

        while($row = mysql_fetch_assoc($sql)) {

        	$badword = mysql_real_escape_string($row['word']);
        	$msg = str_replace($badword," ***** ",$msg);
        	}

    return $msg;
    }

?>
Return current item: WH Community