PHP » PYTHON |
login |
register |
about
|
PYTHON mysqli::real_escape_string
(1)
Python replacement for PHP's mysqli::real_escape_string
[
edit
]
PHP mysqli::real_escape_stringPHP original manual for mysqli::real_escape_string [ show | php.net ]mysqli::real_escape_stringmysqli_real_escape_string(PHP 5) mysqli::real_escape_string -- mysqli_real_escape_string — Escapes special characters in a string for use in a SQL statement, taking into account the current charset of the connection DescriptionObject oriented style (both methods are equivalent):
string real_escape_string
( string $escapestr
)
Procedural style: This function is used to create a legal SQL string that you can use in an SQL statement. The given string is encoded to an escaped SQL string, taking into account the current character set of the connection. Parameters
Return ValuesReturns an escaped string. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above example will output: Error: 42000 1 Row inserted. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|