DEDECMS的一段求解释,该如何处理
时间:2021-07-01 10:21:17
帮助过:29人阅读
DEDECMS的一段求解释
if(count($_SESSION['bigfile_info']) > 0)
{
foreach ($_SESSION['bigfile_info'] as $k => $v)
{
if(!empty($v))
{
$pictitle = ${'picinfook'.$k};
$titleSet = '';
if(!empty($pictitle))
{
$picTitle = TRUE;
$titleSet = ",title='{$pictitle}'";
}
$dsql->ExecuteNoneQuery("UPDATE `#@__uploads` SET arcid='{$arcID}'{$titleSet} WHERE url LIKE '{$v}'; ");
}
}
}
这里ExecuteNoneQuery("UPDATE `#@__uploads` SET arcid='{$arcID}'{$titleSet} WHERE url LIKE '{$v}'; "); arcid='{$arcID}'{$titleSet}这句什么意思啊?
------解决方案--------------------
arcid='{$arcID}'---> 更新arcid的值为$arcID
{$titleSet}----->$titleSet = ",title='{$pictitle}'";---->更新title的值为$pictitle