Hi someone gave me this
$sql = "SELECT words FROM profanity";
$res = mysql_query($sql);
while($row = mysql_fetch_array($res))
{
$word = $row['words'];
if(preg_match ("/b$wordb/i", $username))
$flagged = 1;
}
if($flagged == 1)
{
print 'some error text';
exit;
}
for my profanity filter. It is just returning no errors, not paying any attention to whether or not it actually finds the words. Anyone have any ideas?