There are four instances of the admin pages for the web-voting utility (one for each dept using it). The whosVoted.php and getResults.php pages in all four instances are virtually identical, so I created a getResults.inc and whosVoted.inc files, put them into an includes folder and then replaced the block of code in the php files with an include to the .inc file.