[wp-hackers] mysql_real_connect instead of mysql_connect
emmensetech at gmail.com
Mon Feb 26 05:54:47 GMT 2007
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. :)
Technology Manager, b5media
"A Global New Media Company"
web:: www.b5media.com, www.technosailor.com
From: Jamie Talbot <wphackers at jamietalbot.com>
Date: Mon, 26 Feb 2007 15:51:00
To:wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] mysql_real_connect instead of mysql_connect
-----BEGIN PGP SIGNED MESSAGE-----
Aaron Brazell wrote:
> I don't want to come across as snarky, but what are you doing putting
> SQL in your plugins? Are you trying to update something that there is
> not WP API for?
There are many, many reasons why you'd have to write an SQL query that WP doesn't have API for, not
the least of which is updating a table that the plugin itself has added...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
wp-hackers mailing list
wp-hackers at lists.automattic.com
More information about the wp-hackers