I changed the above script:
1- removed the rs_fetch_next_record($users) because it cause this error: Call to a member function FetchRow() on a non-object in C:\xampp\htdocs\vle\lib\dmllib.php on line 827
2- added image search, because some spammers add images such as Ads and p0rn0
3- enhanced sql queries, joining all conditions rather than making an query in loop
4- removing all redundunt queries and make them in one function to avoid any future mess if you want work on this script
5- showing one record for the user who meets more than 1 keyword.. the previous script was showing more than 1 record for any user who has more than 1 keyword in his profile.
hope this helps..
please upload it to CVS.