Why is it necessary to use the link identifier as input when using mysql_real_escape_string (). I know that this function should be used with MySQL queries, but the function actually just manipulates the string.
From the PHP manual :
Resets special characters in unescaped_string, taking into account the current character set of the connection so that it can be placed in mysql_query (). If binary data must be inserted, this function must be used.
and
, , mysql_connect(). , , mysql_connect() . , E_WARNING.
.
http://ilia.ws/archives/103-mysql_real_escape_string-versus-Prepared-Statements.html
, GBK, 0xbf27 (¿) 0xbf5c27 (¿\ GBK - , ). , mysql_real_escape_string() , .
, , mysql mysql_set_charset(). - mysql ()., mysql_real_escape_string() ( mysql_set_charset() SET NAMES)., , script. ( ) real_escape_string(), ( , , )., ( , ?) .
mysql_real_escape_string:
mysql_real_escape_string
Resets special characters in unescaped_string, taking into account the current character set of the connection so that it can be placed in mysql_query ().
Source: https://habr.com/ru/post/1726850/More articles:How can I get a list of all threads in a .Net application? - multithreadingFile names with Japanese characters turn into garbage when they are written to a zip file using java.util.zip. * - javaSelecting menu items using LibVisca - cameraOpenGL revolves around World Origin when they should be around Local Origin - c ++What JSON library to use for data on iPhone - jsonJSon and objective-c - jsoncommercial flv player with rtmp - flvSaving and editing JSON on iPhone / iPod - jsonMaven - Runtime Search Dependencies - javaКросс-платформенная платформа для мобильных устройств, которая может обращаться к журналам вызовов - androidAll Articles