mysql_real_escape_string wants a string or a "resource"?

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

 



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 /home/metheuser/public_html/somedir/ billing_manageClients.php on line 53"

but the docs here:
http://us2.php.net/manual/en/mysqli.real-escape-string.php
say:
"Procedural style:
string mysqli_real_escape_string ( mysqli $link , string $escapestr )
"
..and even go on to give an example using a string for that 2nd param.

Why is it complaining to me?

p.s. what is a "resource" compared to a string?

------------
Govinda
govinda.webdnatalk@xxxxxxxxx


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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