From 9d53beb090478d17ff2c00a81e3af497d9168e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=A2=81=E6=9D=B0?= <2335099731@qq.com> Date: Sun, 29 May 2022 22:27:37 +0800 Subject: [PATCH] 20220525 --- .../20220525-\344\274\232\350\257\235.md" | 327 ++++++++++++++++++ 1 file changed, 327 insertions(+) create mode 100644 "\351\231\210\346\242\201\346\235\260/20220525-\344\274\232\350\257\235.md" diff --git "a/\351\231\210\346\242\201\346\235\260/20220525-\344\274\232\350\257\235.md" "b/\351\231\210\346\242\201\346\235\260/20220525-\344\274\232\350\257\235.md" new file mode 100644 index 0000000..e46acd9 --- /dev/null +++ "b/\351\231\210\346\242\201\346\235\260/20220525-\344\274\232\350\257\235.md" @@ -0,0 +1,327 @@ +创建数据库: + +```mysql +CREATE DATABASE book charset utf8; +use book; + +CREATE TABLE bookif( +book_id int PRIMARY KEY auto_increment, +book_name VARCHAR(20) not null, +book_price DECIMAL not null, +book_author VARCHAR(20) + + +); +``` + +连接数据库: + +```php+HTML +//conn.php + + +
+ +图书编号 | +图书名字 | +图书价格 | +图书作者 | +功能 | +暂无数据! | "; + }else { + while ($row = mysqli_fetch_assoc($select)) { + + ?> +
---|---|---|---|---|
+ | + | + | + | 修改| + 删除 | +