[PHP] mysql_real_escape_string wants a string or a resource?

2009-07-11 Thread Govinda
This code: $maybeDeleteClient=($_GET[maybeDeleteClient]); $maybeDeleteClient=mysql_real_escape_string($db_billing, $maybeDeleteClient); // this is line 53 gives this error: Warning: mysql_real_escape_string() expects parameter 2 to be resource, string given in

Re: [PHP] mysql_real_escape_string wants a string or a resource?

2009-07-11 Thread Stuart
2009/7/11 Govinda govinda.webdnat...@gmail.com: This code: $maybeDeleteClient=($_GET[maybeDeleteClient]); $maybeDeleteClient=mysql_real_escape_string($db_billing, $maybeDeleteClient); // this is line 53 gives this error: Warning: mysql_real_escape_string() expects parameter 2 to be

Re: [PHP] mysql_real_escape_string wants a string or a resource?

2009-07-11 Thread Stuart
2009/7/11 Govinda govinda.webdnat...@gmail.com: You're looking at the documentation for mysqli_real_escape_string but using mysql_real_escape_string - notice the i in mysqli in the first function name. right.  Thanks. p.s. what is a resource compared to a string? A resource is a variable

Re: [PHP] mysql_real_escape_string wants a string or a resource?

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 17:51, Govindagovinda.webdnat...@gmail.com wrote: as in a db connection That's essentially a resource in reference to an object. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our

Re: [PHP] mysql_real_escape_string wants a string or a resource?

2009-07-11 Thread Govinda
For the longest time, we were having a problem in the docs where some mirrors were erroneously redirecting references to mysqli_real_escape_string() to mysql_real_escape_string(). Should all be fixed now (and certainly is on the US2 mirror). In my case, I had somehow got the idea that the