Using this in conjunction with the mysql eggdrop module http://www.barkerjr.net/eggdropmodules.html http://wiki.barkerjr.net/wiki/MySQL_Module#Tcl_Commands proc mysql {n u h c a} { mysql_connect dbname dbhost dbuser dbpass mysql_query "select * from Residential WHERE Phone1 = 'a'" puthelp ...