This is a collection of functions I've written to work with the MySQL database. Basically, these simplify things a little bit for those who work under me. Connect via
dbConnect(($persist) ? true : false);
and close via
dbClose();
Not bad at all, maybe better if this were in a class to better organise it. It wouldnt be hard has you have done most of the hard work.