作者:Jerl | 来源:互联网 | 2017-05-14 02:09
DEDECMS的一段求解释if(count($_SESSION[bigfile_info]) > 0){foreach ($_SESSION[bigfile_info] as $k > $v){if(!empty($v)){
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