Re: Using mysql_real_escape_string without connecting to mysql
| From: | Richard Lynch | Date: | Wed, 23 Jan 2008 19:39:52 +0000 |
| Subject: | Re: Using mysql_real_escape_string without connecting to mysql | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267921@lists.php.net to get a copy of this message | ||
On Wed, January 23, 2008 12:47 pm, Dotan Cohen wrote:
> On 23/01/2008, Eric Butera <eric.butera@gmail.com> wrote:
>> On Jan 22, 2008 8:01 PM, Dotan Cohen <dotancohen@gmail.com> wrote:
> However, I do not think that the script should throw an error until I
> actually call mysql_clean. Merely having it in an include should not
> throw an error if the function is not being used.
If you get it to throw an error for a connection not present, then you
ARE calling the function.
You may not know where you called it in your rats' nest of OOP, but
you are calling it. :-) :-) :-)
The only errors PHP throws without calling functions are parse errors.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?