我希望我的网站在单击桌面用户表格单元格中的任何尺寸选项时搜索属于特定尺寸的任何产品,但我遇到两个挑战
我的水平单元循环应该从左到右递增,如下所示 28D、28DD、28E、28F、28FF、28G ...28K,然后移动到第二行 30D --- 30k,但它重复每个值 12 次水平像这样28D,28D,28D 12次,然后移动到第二行28DD,再次重复12次。请问我的四循环可能有什么问题?
我不知道如何在表格单元格周围放置锚标记以及如何在表格单元格中放置 name = size 属性以使其链接 sizeresult.php。它将由选择查询处理,这是我的代码:
<div class="table-responsive"><!-- table-responsive begin -->
<table class="table table-striped table-hover" border="0" width="100%" cellpadding="5" cellspacing="5">
<thead>
<tr>
<th class="success">
<h4 class="text-center white-text">D</h4>
</th>
<th class="info">
<h4 class="text-center white-text">DD</h4>
</th>
th class="danger">
<h4 class="text-center white-text">E</h4>
</th>
<th class="success">
<h4 class="text-center white-text">F</h4>
</th>
<th class="info">
<h4 class="text-center white-text">FF</h4>
</th>
<th class="danger">
<h4 class="text-center white-text">G</h4>
sizeresult.php 代码是这样的:
$size_name=$_POST['尺寸'];
$run_products = mysqli_query($dbc,"SELECT * FROM products INNER JOIN SIZES USING (size_id) WHEREsizes.size ='%$size_name%'");
繁花不似锦