/** * sql过滤 */ function sqlTrim($u){ $r = trim($u); $r = addslashes(htmlspecialchars(urldecode($r))); $r = str_replace(array('%', '_'), array('\%', '\_'), $r); return $r; }
小涛