This small script allows you to turn a MySQL database table into a hash, and optionally a state-maintaining popup menu. There are two complementary functions: tableToHash which returns a hash, and tableToPopup which prints out a popup menu based on the hash. Note that you must have already opened a connection to a MySQL database before using this, otherwise mysql query will fail. Note: this site requires registration to access the file.