Doc #54666 [Opn->Bgs]: equal Query string in example
| From: | wiesemann@php.net | Date: | Thu, 05 May 2011 21:52:39 +0000 |
| Subject: | Doc #54666 [Opn->Bgs]: equal Query string in example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6351@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54666&edit=1
ID: 54666
Updated by: wiesemann@php.net
Reported by: schudax at gmx dot de
Summary: equal Query string in example
-Status: Open
+Status: Bogus
Type: Documentation Problem
Package: Documentation problem
Operating System: Windows XP
PHP Version: 5.2.17
-Assigned To:
+Assigned To: wiesemann
Block user comment: N
Private report: N
New Comment:
Both examples (OO and procedural) are showing the usage of this
function:
$city = $mysqli->real_escape_string($city);
$city = mysqli_real_escape_string($link, $city);
I guess that you've overlooked these calls directly before the second
query() calls.
Previous Comments:
------------------------------------------------------------------------
[2011-05-05 12:51:43] schudax at gmx dot de
Description:
------------
---
From manual page:
http://www.php.net/mysqli.real-escape-string#Beispiele
---
Hello,
i think, in the example which should show the use of the function
real_escape_string will be no difference when executing the code because
the use of real_escape_string function is missing. Both query-strings
are the same.
Greeeeetz,
Schudax
Expected result:
----------------
Correction of the example
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54666&edit=1