添加html文件时出错(阅读html源代码)&加入数据库!! [英] Error while adding html files (read the html sourcecode) & adding into the database!!

查看:131
本文介绍了添加html文件时出错(阅读html源代码)&加入数据库!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于空格或字符集错误似乎是错误


======================= ===================

展开 | 选择 | Wrap < span class =codeDivider> | 行号

解决方案

< blockquote>你应该使用cfqueryparam来输入数据库的所有输入。


我试过使用下面的代码==仍然是错误




======================= cf_sql_longvarchar


以下信息是用于网站开发人员进行调试。


处理请求时发生错误

执行数据库查询时出错。

字符串值不正确:第1行第't6a'列的''\ xc2 \ x82 \ xC3 \ x82 \ xC2 \ xA0 ...''


错误发生在C:\ColdFusion8 \ www.root \job8 \1_\3mmm_add2_readhtml_ action3 ===。cfm:第79行


77 :( type1,t6a,add,jb1)

78:值

79:(''#url.aatype1#'',< cfqueryparam value =" ;#aacc2#" cfsqltype =" cf_sql_longvarchar">,''si'',''#url.page#'')

80:< / cfquery>

81:


============================ =不确定是否可以使用cf_sql_text



您访问的网站遇到意外错误。

请联系网站管理员。


以下信息适用于网站开发人员以进行调试。


处理请求时发生错误

执行数据库查询时出错。

字符串值不正确:第1行第't6a'列的''\ xc2 \ x82 \ xC3 \ x82 \ xC2 \ xA0 ...''


错误发生在C:\ColdFusion8 \ www.root \job8 \1_\3mmm_add2_readhtml_ action3 ===。cfm:第79行


77 :( type1,t6a,add,jb1)

78:值

79:(''#url.aatype1#'',< cfqueryparam value =" ;#aacc2#" cfsqltype =" cf_sql_text">,''si'',''#url.page#'')

80:< / cfquery>


这看起来像是一个数据库错误。直接在数据库中尝试相同的查询,看看是否仍然出现错误。


The error seems to be error due to space or character set

==========================================

Expand|Select|Wrap|Line Numbers

解决方案

You should be using cfqueryparam for all inputs into the database.


I have tried using the following code == still error



======================= cf_sql_longvarchar


The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request
Error Executing Database Query.
Incorrect string value: ''\xC2\x82\xC3\x82\xC2\xA0...'' for column ''t6a'' at row 1

The error occurred in C:\ColdFusion8\wwwroot\job8\1_\3mmm_add2_readhtml_ action3===.cfm: line 79

77 : (type1, t6a, add, jb1)
78 : values
79 : (''#url.aatype1#'', <cfqueryparam value="#aacc2#" cfsqltype="cf_sql_longvarchar">, ''si'', ''#url.page#'')
80 : </cfquery>
81 :


============================= not sure if cf_sql_text can be used



The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request
Error Executing Database Query.
Incorrect string value: ''\xC2\x82\xC3\x82\xC2\xA0...'' for column ''t6a'' at row 1

The error occurred in C:\ColdFusion8\wwwroot\job8\1_\3mmm_add2_readhtml_ action3===.cfm: line 79

77 : (type1, t6a, add, jb1)
78 : values
79 : (''#url.aatype1#'', <cfqueryparam value="#aacc2#" cfsqltype="cf_sql_text">, ''si'', ''#url.page#'')
80 : </cfquery>


This seems like a database error. Try the same query in your database directly and see if you still get the error.


这篇关于添加html文件时出错(阅读html源代码)&amp;加入数据库!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆