Discussion on mysql-basics

0 views
Skip to first unread message

Aaron Reisman

unread,
May 5, 2010, 2:23:07 PM5/5/10
to Hacker Dojo PHP
Why are we using the mysql class? its known to be very slow, I'd
recommend using the mysqli class hence its name is MySQL Improved.

-Aaron

Scott Haines

unread,
May 5, 2010, 4:00:53 PM5/5/10
to Hacker Dojo PHP
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
Reply all
Reply to author
Forward
0 new messages