|
maxdb_real_escape_stringmaxdb::real_escape_stringEscapes 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. See Also
|