query($sqlApp); $app = $resultApp->fetch_assoc(); if (!$app) { header('Location: index.php'); exit; } // 获取App版本信息 $sqlVersions = "SELECT * FROM app_versions WHERE app_id = $appId ORDER BY created_at DESC"; $resultVersions = $conn->query($sqlVersions); // 获取App预览图片 $sqlImages = "SELECT * FROM app_images WHERE app_id = $appId"; $resultImages = $conn->query($sqlImages); // 获取评价信息 $sqlReviews = "SELECT * FROM reviews WHERE app_id = $appId ORDER BY created_at DESC"; $resultReviews = $conn->query($sqlReviews); // 处理评价提交 if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['rating'])) { $rating = $_POST['rating']; $ipAddress = $_SERVER['REMOTE_ADDR']; $insertSql = "INSERT INTO reviews (app_id, ip_address, rating) VALUES ($appId, '$ipAddress', $rating)"; if ($conn->query($insertSql) === TRUE) { header('Location: app.php?id=$appId'); exit; } } ?> <?php echo $app['name']; ?> - <?php echo APP_STORE_NAME; ?>

年龄分级:

年龄分级说明

适用平台:

评分: /5

版本历史

fetch_assoc()): ?>

评价

fetch_assoc()): ?>

评分: /5

评价时间:

提交评价