2025.11.02

日志以及文章完善了数据库存储
接下来就是完成上传数据库的前端与后端的融合了

**署名**
SkimrMe

 # 修改部分
 Changes to be committed:
	modified:   public/blog/index.php
	modified:   public/blog/logs.php
	new file:   public/blog/post/index.php
	new file:   public/blog/post/s/index.php
	deleted:    public/blog/read_file.php
	modified:   public/index.php
	deleted:    public/request/posts.php
	deleted:    src/views/index.php
	deleted:    src/views/post.php
	deleted:    src/views/posts.php
This commit is contained in:
2025-11-02 14:54:04 +08:00
parent 7727a97e4a
commit 0c70b66966
10 changed files with 162 additions and 162 deletions

View File

@@ -1,6 +1,6 @@
<?php
// 设定数据库路径
$db_path = '../../databases/sqlite/owp.db';
$db_path = '/var/www/owp/open-ww3-project-ww3-tw/databases/sqlite/owp.db';
try {
// 连接数据库
@@ -15,7 +15,7 @@
// 内容区
// 执行sql命令 查询表单
$select_id_date_content_from_logs_b_to_s /*查询logs表单中的id date content id大到小排列*/ = $db->query('SELECT id, date, content FROM logs ORDER BY id DESC'); // 执行查询logs表单中的id date content id大到小排列的命令
$select_id_date_content_from_logs_b_to_s /*查询logs表单中的id date content id大到小排列*/ = $db->query('SELECT id, date, content FROM logs ORDER BY id DESC'); // 执行查询logs表单中的id date content id大到小排列的命令
// 循环 写入
while ($row = $select_id_date_content_from_logs_b_to_s->fetchArray(SQLITE3_ASSOC)) {