diff --git a/课堂代码/01-blog开发/v3/article.php b/课堂代码/01-blog开发/v3/article.php
new file mode 100644
index 0000000..f608a45
--- /dev/null
+++ b/课堂代码/01-blog开发/v3/article.php
@@ -0,0 +1,1102 @@
+
+
+
+
+ location.href='index.php';";
+ exit;
+ }
+ ?>
+
+
+ — 许老师的小站
+
+
+
+
+ 0) {
+ $nick = $_POST["nick"];
+ $email = $_POST["email"];
+ $content = $_POST["content"];
+ $time = date("Y-m-d H:i:s");
+ $sql = "INSERT INTO comments (article_id, nick, email, content, time) VALUES ($article_id, '$nick', '$email', '$content', '$time')";
+ $result = mysqli_query($conn, $sql);
+ if ($result) {
+ echo "";
+ } else {
+ echo "";
+ }
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📄 笔记
+
+ ⏱
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/课堂代码/01-blog开发/v3/article_add.php b/课堂代码/01-blog开发/v3/article_add.php
new file mode 100644
index 0000000..19751ea
--- /dev/null
+++ b/课堂代码/01-blog开发/v3/article_add.php
@@ -0,0 +1,65 @@
+
+
+ alert('文章添加成功');location.href='articles_list.php'";
+ } else {
+ echo "Error: " . $sql . "
" . $conn->error;
+ }
+ }
+
+ ?>
+
+
+
+
+
+
+
💬 评论
+ +