http://pastebin.com/ehJi20n9
I've attempted to update these functions several times, but I keep getting thrown errors.
Does anyone have a MySQLi database class I could peak at? Or better yet, give me a few starting points on what to change in my own code.