以下は、同じテーブルの値を表示しようとしているコードですが、異なる ID を持つ HTML テーブルの異なる列に、テーブルに 3 つの列があり、各列に個別の値が表示されるとします。
同じテーブルから表示されているデータの各列で、それぞれのIDが変更されることを望んでいます
のようなもの: ID1 の値 | ID2 | の値 ID3の値
しかし、現在、私の仕事は次のようなものです: ID1 の値 | ID1 の値 | ID1の値
次のコードを修正する方法を教えてください。
<table width="714" height="318" border="0" align="right" cellpadding="2" cellspacing="0">
<?php $count=0; do {
{ ++$count;
?> <tr>
<td width="231" height="288" valign="top" background="images/viv.png"><div align="center"><img src="get.php?id=<?php echo $row_Recordset1['ID']; ?>" width="270" height="270" /><br />
<br />
<a href="get_deal.php?id=<?php echo $row_Recordset1['ID']; ?>"><img src="button.png" width="182" height="36" border="0" /></a><br />
<br />
</div></td>
<td width="231" valign="top" background="images/viv.png"><div align="center"><img src="get.php?id=<?php echo $row_Recordset1['ID']; ?>" width="270" height="270" /><br />
<br />
<a href="get_deal.php?id=<?php echo $row_Recordset1['ID']; ?>"><img src="button.png" width="182" height="36" border="0" /></a><br />
<br />
</div></td>
<td width="231" valign="top" background="images/viv.png"><div align="center"><img src="get.php?id=<?php echo $row_Recordset1['ID']; ?>" width="270" height="270" /><br />
<br />
<a href="get_deal.php?id=<?php echo $row_Recordset1['ID']; ?>"><img src="button.png" width="182" height="36" border="0" /></a><br />
<br />
</div></td>
</tr>
<tr>
<td height="23" valign="top"> </td>
<td valign="top"> </td>
<td valign="top"> </td>
</tr>
<?php }
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
if ($count == 0)
echo '<span style="font-family:Tahoma;color:white;font-size:200%">No Deals Available</span>'; ?>
</table></td>
</tr>
</table>