首页
管理
搜索
最新应用
prepare($sql); $searchTerm = "%$search%"; $stmt->bind_param("ss", $searchTerm, $searchTerm); $stmt->execute(); $result = $stmt->get_result(); } else { $result = $conn->query($sql); } if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { echo '
'; echo '
'; echo '
'; echo '
'; echo '
'. $row['name'] . '
'; echo '
'. substr($row['description'], 0, 100) . '...
'; echo '
评分: '. round($row['avg_rating'], 1) . '/5
'; echo '
查看详情
'; echo '
'; echo '
'; echo '
'; } } ?>