update : 2015.11.03
php.shukuma.com검색:
|
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 an SQL statement, taking into account the current charset of the connection 설명객체 기반 형식
string mysqli::real_escape_string
( string
$escapestr
)절차식 형식 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. Caution
Security: the default character setThe character set must be set either at the server level, or with the API function mysqli_set_charset() for it to affect mysqli_real_escape_string(). See the concepts section on character sets for more information. 인수
반환값Returns an escaped string. 예제Example #1 mysqli::real_escape_string() example 객체 기반 형식
<?php 절차식 형식
<?php 위 예제들의 출력: Error: 42000 1 Row inserted. 주의
참고
|