无法使此查询工作
if (isset($_GET['id'])){
$id = $_GET['id'];
if(isset($_POST['submit'])) {
$id = (int)$id;
$caption = mysql_real_escape_string($_POST['caption']);
mysql_query(" UPDATE `photo_gallery`.`photograph` SET `caption` ='{$caption}' WHERE `photograph`.`id` ='{$id}' ");
但是当我手动将其更改为此时,它可以工作
mysql_query("UPDATE `photo_gallery`.`photograph` SET `caption` = 'bruv' WHERE `photograph`.`id` =3");