我有一段代码,它会产生意外的EOF(文件结束)错误。我无法找到它。
$ statement = $ pdo-> prepare($ sql); $陈述式>执行([
setExactAndAllowWhileIdle()
此后有更多的PHP,所以我不需要?>。
提前致谢。
答案 0 :(得分:0)
$query = "UPDATE images SET
`filename`= :filename,
`display_start_date`= :display_start_date,
`display_end_date` = :display_end_date,
`display_delay` = :display_delay";
$pdoResult = $pdo->prepare($query);
$pdoExecute = $pdoResult->execute(
[
':name' => $imageName,
':path' => $path;
':filename' => $imageFilename,
':display_start_date' => $displayStartDate,
':display_end_date' => $displayEndDate,
':display_delay' => $displayDelay,
':upload_date' => date('Y-m-d'),
':image_id' => $imageId)
]
)
}
答案 1 :(得分:0)
$query = "UPDATE images SET
$query = "UPDATE images SET
`filename`= :filename,
`display_start_date`= :display_start_date,
`display_end_date` = :display_end_date,
`display_delay` = :display_delay";