prepare("INSERT INTO love_wall (user_id, content) VALUES (?, ?)"); // 执行SQL语句 if ($stmt->execute([$user_id, $content])) { echo "发表成功!"; } else { echo "发表失败!"; } } ?>