所以基本上我有一個事件,我想在單擊該事件時在數(shù)據庫中更改該事件的值。想法是這樣的(此代碼不起作用)eventClick: function(calEvent, jsEvent, view) [<?php while($row_events = mysqli_fetch_array($resultado_events)){ ?> { location.href = "update_task.php?id=<?php echo $fetch['id'];?>";},<?php } ?>]更新任務代碼<?phprequire_once 'conn.php';if($_GET['id'] != ""){ $id = $_GET['id']; $conn->query("UPDATE `task` SET `status` = 'Done' WHERE `id` = $id") or die(mysqli_errno()); header('location: index.php');}?>更新任務上的代碼正在運行,因為我在常規(guī)頁面上進行了測試,fullcalendar中的代碼無法正常工作。提前致謝。
如何使用事件單擊更改php數(shù)據庫值
Qyouu
2021-05-07 18:18:23