Jump to content

where to post badwords filter in insert


silverglade

Recommended Posts

hi, im having trouble finding where to post this in my instert into table code.

 

$badwords = array("porn", "meecrab");

qry = "INSERT INTO table (Content) VALUES ('".preg_replace($badwords, "@$#!", $content)."')";

 

 

or i might post this

 

$qry = "DELETE FROM table WHERE content LIKE '%porn%' OR content LIKE '%meecrab%'";

 

into the insert statement somehow

 

 

here is my insert statement

 

$sql="INSERT INTO $tbl_name(topic, detail, name, email, datetime)VALUES('$topic', '$detail', '$name', '$email', '$datetime')";

$result=mysql_query($sql);

 

Link to comment
https://forums.phpfreaks.com/topic/118677-where-to-post-badwords-filter-in-insert/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.