Quote Originally Posted by DrByte View Post

And your script needs to first run application_top in order to get access to the database via $db.
I think this was all I actually needed. Got it to work now.