silverglade Posted August 7, 2008 Share Posted August 7, 2008 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 More sharing options...
silverglade Posted August 7, 2008 Author Share Posted August 7, 2008 also, is there a way i can delete the 2 offensive posts that show up on my forum already? please. derek Link to comment https://forums.phpfreaks.com/topic/118677-where-to-post-badwords-filter-in-insert/#findComment-611042 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.