Summary å ¥é Ajax pp.16 ããã [2013-03-30] è¿½è¨ ãã®ã¨ã³ããªã¯ãåèã«ãã¦ã¯ãããªãã SQLã¤ã³ã¸ã§ã¯ã·ã§ã³ MySQL PHP $sql = mysql_escape_string($sql); MySQL Perl $sql =~ s/'/''/g; $sql =~ s/\\/\\\\/g; PostgreSQL PHP $sql = pgsql_escape_string($sql); PostgreSQL Perl $sql =~ s/'/''/g; $sql =~ s/\\/\\\\/g; SQLite PHP $sql = sqlite_escape_string($sql); OSã¤ã³ã¸ã§ã¯ã·ã§ã³ Linux PHP $str = escapeshellarg($str); Linux Perl $str =~ s/'/\\'/g; XS
{{#tags}}- {{label}}
{{/tags}}