update : 2015.11.03
php.shukuma.com검색:
|
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 설명절차식 형식
string maxdb_real_escape_string
( resource
$link
, string $escapestr
)객체 기반 형식
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 ', ". 반환값Returns an escaped string. 예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제의 출력 예시: Warning: maxdb_query(): -5016 POS(43) Missing delimiter: ) <...> Error: 42000 1 Row inserted. |