最新应用

prepare($sql); if (!$stmt) { die('预处理语句失败: ' . $conn->error); } call_user_func_array([$stmt, 'bind_param'], array_merge([$paramTypes], $params)); if (!$stmt->execute()) { die('执行语句失败: ' . $stmt->error); } $result = $stmt->get_result(); } else { $result = $conn->query($sql); if (!$result) { die('查询失败: ' . $conn->error); } } if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { echo '
'; echo '
'; echo ''. $row['name'] . ''; echo '
'; echo '
'. $row['name'] . '
'; echo '

'. substr($row['description'], 0, 100) . '...

'; echo '

评分: '. round($row['avg_rating'], 1) . '/5

'; echo '查看详情'; echo '
'; echo '
'; echo '
'; } } ?>