Updated result_table to be able to handle an empty result set, removed
old code and added a new $attrib parameter.