This function runs an arbitrary SQL query on a given database, returning the result of the query.
(bad code)
function runEmployeeQuery($dbName, $name){
mysql_select_db($dbName,$globalDbHandle) or die("Could not open Database".$dbName);