prepare($sql); $stmt->bindParam(':order', $order, SQLITE3_INTEGER); $stmt->bindParam(':categoryId', $categoryId, SQLITE3_INTEGER); $result = $stmt->execute(); $order++; } $response = [ "success" => true, "message" => translate("sort_order_saved", $i18n) ]; echo json_encode($response); } else { $response = [ "success" => false, "errorMessage" => translate("session_expired", $i18n) ]; echo json_encode($response); die(); } ?>