note 98277 added to function.mysql-real-escape-string
| From: | NicolasDuhamel at osu1 dot php dot net | Date: | Sun, 06 Jun 2010 17:34:18 +0000 |
| Subject: | note 98277 added to function.mysql-real-escape-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169918@lists.php.net to get a copy of this message | ||
As i've struggled for several hours without finding out why mysql_real_escape_string() would
not work on my page sometimes, and sometimes would, i thought i'd post this:
you MUST have an active connection with your mysql server in order for this function to work.
It's written in the function description, but it wasn't obvious to me, so I think other
people might get into that trap too.
----
Server IP: 69.147.83.197
Probable Submitter: 93.0.36.4
----
Manual Page -- http://www.php.net/manual/en/function.mysql-real-escape-string.php
Edit -- https://master.php.net/note/edit/98277
Del: integrated -- https://master.php.net/note/delete/98277/integrated
Del: useless -- https://master.php.net/note/delete/98277/useless
Del: bad code -- https://master.php.net/note/delete/98277/bad+code
Del: spam -- https://master.php.net/note/delete/98277/spam
Del: non-english -- https://master.php.net/note/delete/98277/non-english
Del: in docs -- https://master.php.net/note/delete/98277/in+docs
Del: other reasons-- https://master.php.net/note/delete/98277
Reject -- https://master.php.net/note/reject/98277
Search -- https://master.php.net/manage/user-notes.php