19.7.3.53. mysql_real_escape_string()
unsigned long mysql_real_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length)
Note that mysql must be a valid, open connection. This is needed because the escaping depends on the character set in use by the server.
Description
This function is used to create a legal SQL string that you can use in an SQL statement. See Section 8.1.1, “Strings”.
The string in from is encoded to an escaped SQL string, taking i阅读全文>
发表于 @ 2008年11月12日 13:03:00|评论(loading...)|举报|收藏