[PHP] mysql_real_escape_string() ?

2002-06-18 Thread Chris Knipe

Lo all,

Does mysql_real_escape_string exist?  I've seen it in the manual pages, and
to my understanding, it is the proper function to call on strings to escape
them before inserting them into a database...

I've used it as follows:
 $text[1] = mysql_real_escape_string($text[1]);
 $details[0] = mysql_real_escape_string($details[0]);
 $url[1] = mysql_real_escape_string($url[1]);

However, it returns a error:
Fatal error: Call to undefined function: mysql_real_escape_string() in
D:\temp\grabnews.php on line 32

Now what???



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




RE: [PHP] mysql_real_escape_string() ?

2002-06-18 Thread Mattias Eriksson

>Does mysql_real_escape_string exist?  I've seen it in the manual pages,
and
>to my understanding, it is the proper function to call on strings to
escape
>them before inserting them into a database...

mysql_real_escape_string() is only available in CVS version.

_
Mattias Eriksson


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