PHP上传文件Mysql失败

时间:2014-02-28 22:22:35

标签: php mysql file syntax upload

有人可以指出我在这段代码中犯的错误吗?

for($i=0; $i<count($fileDirectories); $i++){

            echo 'asdasd';
            echo $fileDirectories[$i];
            $queryFiles = "UPDATE maintable SET Picture$i = '$fileDirectories[$i]' WHERE id = $idNeeded;";
            mysqli_query($link, $queryFiles); 
        }

我只是找不到那个好的duide

1 个答案:

答案 0 :(得分:1)

$queryFiles = "UPDATE maintable SET Picture$i = '$fileDirectories[$i]' WHERE id = '$idNeeded'";