[wp-hackers] mysql_real_connect instead of mysql_connect

Aaron Brazell 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. :)
--
Aaron Brazell 
Technology Manager, b5media
"A Global New Media Company" 

web:: www.b5media.com, www.technosailor.com
phone:: 410-608-6620 
skype:: technosailor   

-----Original Message-----
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-----
Hash: SHA1

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...

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

iD8DBQFF4nVDrovxfShShFARAlSkAJ0dWZjp/qeK5llyqh/5JPi28cc8AACfW8rx
pyUDVqe30MmKvlU/I5bNK84=
=2JMu
-----END PGP SIGNATURE-----
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list