PDO (PHP Data Objects) is a PHP extension that grants you generic access to databases in an object-oriented fashion. Perusing stackoverflow I found an excellent tutorial on the subject written by Paul DuBois at kitebird.com.
Using PDO, you’ll stop embedding calls to mysql_ functions across your code, your scripts will improve, your breath will smell mintier, swallows [...]