![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
求啊!!!
我在GET/POST/COOKIE是如此处理的,之后执行SQL语句:
$newstitle=htmlSpecialChars(addslashes(trim($newstitle)));
输出:
function echomemotwo($str){
$str=str_replace(' ',' ',$str);
$str=stripslashes(nl2br($str));
return $str;
}
*********************************************************************************
但觉得很不够,所以征求大家的代码学习下~大家是如何处理的,最佳效果是无任何SQL溢出和HTML乱码,和出现类似/a?>错误~~~
提问者:cogcong 08-13 19:07
答复

