prepare($updateQuery); if (!$stmt) { die("Prepare failed: " . $db->lastErrorMsg()); } $stmt->bindValue(':clientprogress', $clientprogress, SQLITE3_TEXT); $stmt->bindValue(':projectname', $projectname, SQLITE3_TEXT); $result = $stmt->execute(); if (!$result) { die("Execute failed: " . $db->lastErrorMsg()); } // Close the database connection and the prepared statement $stmt->close(); $db->close(); $successfull = "Successfull"; echo json_encode(['successfull' => $successfull]); } else { $successfull = "Not Successfull"; echo json_encode(['successfull' => $successfull]); } } ?>