Forum Moderators: coopster
//i don't know how to populate the list using mySQL, never used it
$words = array('this','that','and','the','other','thing');
// call it like this
$uneditedString = "hi, this and that and the other thing. yup!";
$edited = edit_words($uneditedString,$words);
?>
hope this helps a little, i'm sure there are much better ways