fckeditor的数据库中插入
我写了一个脚本插入到Access数据库的fckeditor的值。我碰到下面的语法错误:
我插入一般网页源码都没问题,偶然间插入一个表时出现以下错误
//错误
语法错误 (操作符丢失) 在查询表达式 ''<table cellspacing="2" cellpadding="0" border="0" align="center" width="90%" id="table1">
<tbody>
<tr>
<td height="50" align="right" width="56"><img src="http://www.flblx.com/pic/ico_q.gif" alt="" /></td>
<td width' 中。
// 我的代码
protected void btn_about_Click(object sender, EventArgs e)
{
OleDbConnection cn = Class1.DBconnection();
string content = FCKeditor1.Value.ToString();
cn.Open();
OleDbCommand cmd = new OleDbCommand("update News set newsContent= '" + content + "' where ID="+id, cn);
cmd.ExecuteNonQuery();
Response.Write("<script language='javascript'>alert('保存成功!');</script>");
}
我插入一般网页源码都没问题,偶然间插入一个表时出现以下错误
//错误
语法错误 (操作符丢失) 在查询表达式 ''<table cellspacing="2" cellpadding="0" border="0" align="center" width="90%" id="table1">
<tbody>
<tr>
<td height="50" align="right" width="56"><img src="http://www.flblx.com/pic/ico_q.gif" alt="" /></td>
<td width' 中。
// 我的代码
protected void btn_about_Click(object sender, EventArgs e)
{
OleDbConnection cn = Class1.DBconnection();
string content = FCKeditor1.Value.ToString();
cn.Open();
OleDbCommand cmd = new OleDbCommand("update News set newsContent= '" + content + "' where ID="+id, cn);
cmd.ExecuteNonQuery();
Response.Write("<script language='javascript'>alert('保存成功!');</script>");
}
...全文
相关推荐
fckeditor提交到access
首先,FCKeditor是一款JavaScript实现的在线文本编辑器,它可以提供类似Word的编辑体验,让用户在浏览器端创建和格式化文本。其功能包括字体选择、颜色调整、图片上传、超链接插入等。
fckeditor_demo
**Thumbs.db** 是Windows系统中用于存储缩略图预览的数据库文件,通常在浏览图像文件夹时自动生成,这里可能是用户在操作过程中产生的。
jsp结合html编辑器FCKeditor对Oracle CLOB大字段操作范例
JDBC(Java Database Connectivity)是Java连接数据库的标准API,我们可以用它来完成这个任务。首先,确保已添加Oracle JDBC驱动到项目的类路径中。
php-在线HTML编辑器:kindeditor、FCKeditor
例如:`mysqli_select_db($conn, 'your_database_name');`3. **设置字符集**: - 设置MySQL请求或返回数据的字符集,以确保数据的一致性和准确性。
传智播客fckeditor视频
- **数据库技术**:如MySQL等数据库管理系统的使用技巧,特别是与FCKeditor数据存储相关的部分。


