<commit_before><?php
include '../includes/session.php';

if (isset($_POST["bookToUpdate"])) {

    $bookToUpdate = filter_input(INPUT_POST, 'bookToUpdate', FILTER_SANITIZE_NUMBER_INT);

    $stmt1 = $mysqli->prepare("SELECT bookid, book_name, book_author, book_notes, book_copy_no FROM system_books WHERE system_modules.moduleid = ? LIMIT 1");
    $stmt1->bind_param('i', $bookToUpdate);
    $stmt1->execute();
    $stmt1->store_result();
    $stmt1->bind_result($bookid, $book_name, $book_author, $book_notes, $book_copy_no);
    $stmt1->fetch();
    $stmt1->close();

} else {
    header('Location: ../../library/');
}
?>

<!DOCTYPE html>
<html lang="en">

<head>

	<?php include '../assets/meta-tags.php'; ?>

    <?php include '../assets/css-paths/common-css-paths.php'; ?><commit_msg>Changed structure<commit_after><?php
include '../includes/session.php';

if (isset($_POST["bookToUpdate"])) {

    $bookToUpdate = filter_input(INPUT_POST, 'bookToUpdate', FILTER_SANITIZE_NUMBER_INT);

    $stmt1 = $mysqli->prepare("SELECT bookid, book_name, book_author, book_notes, book_copy_no FROM system_books WHERE bookid = ? LIMIT 1");
    $stmt1->bind_param('i', $bookToUpdate);
    $stmt1->execute();
    $stmt1->store_result();
    $stmt1->bind_result($bookid, $book_name, $book_author, $book_notes, $book_copy_no);
    $stmt1->fetch();
    $stmt1->close();

} else {
    header('Location: ../../library/');
}
?>

<!DOCTYPE html>
<html lang="en">

<head>

	<?php include '../assets/meta-tags.php'; ?>

    <?php include '../assets/css-paths/common-css-paths.php'; ?>
{'fraction_non_alphanumeric': 0.197444089456869, 'fraction_numerical': 0.010223642172523962, 'mean_word_length': 4.53356890459364, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6678856', 'n_tokens_mistral': 566, 'n_tokens_neox': 547, 'n_words': 95}