I am trying to create my first plugin, that inserts javascript code into WP_FOOTER. The way that I am trying to make it work is that I have a MySQL table set up to hold a UID, and whenever a blog page is visited, the UID is inserted into the javascript, and then inserted into the page.
The section of code that I need help with can be found at http://wordpress.pastebin.ca/329566