[wp-hackers] mysql_real_connect instead of mysql_connect

Jamie Talbot wphackers at jamietalbot.com
Mon Feb 26 06:26:14 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Brazell wrote:
> Perhaps I should have phrased the question "why would you use mysql_connect"... The wpdb class is a decent tool for doing sql without injection, etc.
> 
> Heh... It was just a question on my part. Like I said, don't want to sound snarky. :)

I don't think he wants to use mysql_connect() directly, I think he wants WP to use
mysql_real_connect() instead of mysql_connect()  (Correct me if I'm wrong, Sai)

And it didn't sound snarky, though my response probably did :)

Back to the question though - does anyone know of a good reason *not* to use mysql_real_connect()?
Especially as 2.2 is going to MySQL 4.1... (Is that still the plan?)

Cheers,

Jamie.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4n2GrovxfShShFARAuOhAKCKwP9ATUQV0qsvEKUAxiCx6BxqEgCePqZo
kAJKg2MvWpGKd2Kso+BbtOE=
=cArD
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list