织梦后台添加或编辑图集提示附加表时出错


从上面2张报错图片上来看,程序默认就是织梦的未改动过的程序,SQL执行到row就开始提示错误了
为什么有的人主机上运行会报错,有的人又没问题呢,
在mysql高版本又严谨模式下,row字段名是mysql的保留关键字,如果要作为字段使用,必须给它倒引号引起来
`row`='3'
所以织梦的图集解决方法
打开 /dede/album_add.php 找到,大概在333行
,row,
改成
,`row`,
就是给row加了倒引号(``)引起来就可以了,如图

打开 /dede/album_edit.php 找到,大概在381行
row='$row',
改成
`row`='$row',
如图

