Re: [PHP] Re: mysql_real_escape_string() question



On 9/28/06, Ivo F.A.C. Fokkema <I.F.A.C.Fokkema@xxxxxxx> wrote:

Hi Tedd,

According to
http://nl3.php.net/mysql_real_escape_string

The function requires a MySQL connection. If there is none, it
will try and create one. That fails now. Possibly you could use addslashes()?

Regards,

Ivo

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


Don't use addslashes. Keep using mysql_real_escape string but make
sure you have a valid link identifier like Ivo said.

string mysql_real_escape_string ( string unescaped_string [, resource
link_identifier] )
.



Relevant Pages

  • Re: [PHP] Please hack my app
    ... Ivo F.A.C. Fokkema wrote: ... I dont mean to be a total pri*k about this, ... thanks a bunch for your time. ...
    (php.general)
  • Re: [PHP] foreach on a 3d array
    ... Ivo F.A.C. Fokkema wrote: ... which is a security risk (and turned off by ... this server, though. ...
    (php.general)