That is a good point and one that is just up to user preference. I
wrote the mysql class which is on the Pages section of the site, it
works very quick in my tests and in production on my end, but the
mysqli class is written and maintains a larger library of internal
methods, I guess the reason for the DB class I presented yesterday is
to show how MySQL works and get a handle on the constructs prior to
using a prebuilt class which can sometimes lead people to know how to
use the methods but not necessarily know how the internal mechanisms
work.
I like your point though and it is typically better to use any of the
code maintained by
php.net.
http://www.php.net/manual/en/class.mysqli.php