1、 sprintf()函数识别%时有问题,要用%% (提示错误:sprintf():Too few arguments in)2、 数据库中插入“ ‘这两个符号是要加转义字符,可以用str_replace()或addslashes()3、 在js中输入回车/n或换行/r时,也要进行转换变成//n, //r (提示错误:未结束的字符串常量)