📄 insert_book.php
字号:
<?php// include function files for this applicationrequire_once('book_sc_fns.php'); session_start();do_html_header('Adding a book');if (check_admin_user()){ if (filled_out($_POST)) { $isbn = $_POST['isbn']; $title = $_POST['title']; $author = $_POST['author']; $catid = $_POST['catid']; $price = $_POST['price']; $description = $_POST['description']; if(insert_book($isbn, $title, $author, $catid, $price, $description)) echo "Book '".stripslashes($title)."' was added to the database.<br />"; else echo "Book '".stripslashes($title). "' could not be added to the database.<br />"; } else echo 'You have not filled out the form. Please try again.'; do_html_url('admin.php', 'Back to administration menu');}else echo 'You are not authorised to view this page.'; do_html_footer();?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -