如何清理函数参数?我有一个类似于example.com/controller/function/parameter的url,该参数将用于从数据库中获取数据。
有一个特定的函数,或者我需要使用mysql_real_escape_string
发布于 2013-06-05 20:32:20
使用原生CI方法/函数非常简单:
$param = xss_clean($this->uri->segment(2));然后将参数传递给SQL查询。
https://stackoverflow.com/questions/16687794
复制相似问题