单引号表示什么?- 技术问答\' .$row[\'user_id\'].\'\">红色的引号是什么作用?2,function escape_data($data){?global $dbc;?//$dbc为链接数据库结果?if(ini_get(\'magic_quotes_gpc\')){?$data=stripslashes($data);?return mysql_real_e

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 23:58:35
单引号表示什么?- 技术问答\' .$row[\'user_id\'].\'\红色的引号是什么作用?2,function escape_data($data){?global $dbc;?//$dbc为链接数据库结果?if(ini_get(\'magic_quotes_gpc\')){?$data=stripslashes($data);?return mysql_real_e" />

单引号表示什么?- 技术问答\' .$row[\'user_id\'].\'\">红色的引号是什么作用?2,function escape_data($data){?global $dbc;?//$dbc为链接数据库结果?if(ini_get(\'magic_quotes_gpc\')){?$data=stripslashes($data);?return mysql_real_e
单引号表示什么?- 技术问答
\' .$row[\'user_id\'].\'\">红色的引号是什么作用?2,function escape_data($data){?global $dbc;?//$dbc为链接数据库结果?if(ini_get(\'magic_quotes_gpc\')){?$data=stripslashes($data);?return mysql_real_escape_string(trim($data),$dbc);?}谁能大致讲下这函数什么意思,ini_get(\'magic_quotes_gpc\'),mysql_real_escape_string不知道何作用

单引号表示什么?- 技术问答\' .$row[\'user_id\'].\'\">红色的引号是什么作用?2,function escape_data($data){?global $dbc;?//$dbc为链接数据库结果?if(ini_get(\'magic_quotes_gpc\')){?$data=stripslashes($data);?return mysql_real_e
mysql_real_escape_string 这个函数主要防止被注入,对一些引号进行自动转义的作用;单引号的作用就是不解析.如果放在函数里的话,例如我们要调用一个函数,给予他2个参数.fun(\'hello\',\"hello2\")注意,我双和单都用了.在这里是没有区别的...主要是表示它属于一个字符串.最多就是单引快一点点.在用一些系统内定函数时,如果你把这个函数用任何引号阔起来..系统会认为他是字符串,而失去他原本的作用.查看原帖>>