PHP » GoLang |
login |
register |
about
|
GoLang maxdb_real_escape_string
request it (359)
GoLang replacement for PHP's maxdb_real_escape_string
[edit | history]
maxdb_real_escape_stringmaxdb::real_escape_string(PECL maxdb >= 1.0) maxdb_real_escape_string -- maxdb::real_escape_string — Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection DescriptionProcedural style
string maxdb_real_escape_string
( resource
$link
, string $escapestr
)Object oriented style
string maxdb::real_escape_string
( string
$escapestr
)This function is used to create a legal SQL string that you can use in an SQL statement. The string escapestr is encoded to an escaped SQL string, taking into account the current character set of the connection. Characters encoded are ', ". Return ValuesReturns an escaped string. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above example will output something similar to: Warning: maxdb_query(): -5016 POS(43) Missing delimiter: ) <...> Error: 42000 1 Row inserted. |
more
Recently updated
more
Most requested
more
Last requests
|