insert_book.php
来自「php源码 php源码参考」· PHP 代码 · 共 35 行
PHP
35 行
<?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 + =
减小字号Ctrl + -
显示快捷键?