Re: Using mysql_real_escape_string without connecting to mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23/01/2008, Richard Lynch <ceo@xxxxxxxxx> wrote:> On Wed, January 23, 2008 12:47 pm, Dotan Cohen wrote:> > On 23/01/2008, Eric Butera <eric.butera@xxxxxxxxx> wrote:> >> On Jan 22, 2008 8:01 PM, Dotan Cohen <dotancohen@xxxxxxxxx> 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.
I just reviewed the code, and you are right. I call the include forthe database connection (from outside the public directory) justbefore the mysql_query, which is _after_ I've cleaned the variables.
> You may not know where you called it in your rats' nest of OOP, but> you are calling it. :-) :-) :-)
Yes, I was.
> The only errors PHP throws without calling functions are parse errors.
Good to know.
Dotan Cohen
http://what-is-what.comhttp://gibberish.co.ilא-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת;
A: Because it messes up the order in which people normally read text.Q: Why is top-posting such a bad thing?

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux