标签:错误信息 cti roc pre repo display gen isp 一个
报错:
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1300 Invalid utf8 character string: ‘\xBF\xA5‘
解决方法:
$currentPrice = $currentPrice * 1;
=> $currentPrice 原本是字符串的 数字,导致插入数据库失败。
=》所以只要改成 数字 即可。
=》字符串的 数字 ,乘以 1 就会变成 数字类型。
但是有报告了一个Php的错误:
An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.
Thank you.
ini_set
(
‘display_errors‘
,
‘on‘
);
error_reporting
(E_ALL);
标签:错误信息 cti roc pre repo display gen isp 一个
原文地址:http://www.cnblogs.com/meiping/p/7151278.html