PHP

  • Re-using your database connection in PHP

    Often I've wondered what'd be the best practice when connecting to MySQL with PHP. Many people use some function and possibly open and close their database connection multiple times. Well, I've used global variables and such to keep track of the connection, but often global variables do not behave well …

    Read the rest of this entry »