01.
echo
"<form id=frmPd ><table> <tr>"
;
02.
$intRows
=0;
03.
while
(
$objResult
=mysql_fetch_array(
$objQuery
)){
04.
$intRows
++;
05.
echo
"<td>"
;
06.
?>
07.
<td valign=
"top"
>
08.
<img src=
"../img/product/<?=$objResult["
pdImage
"];?>"
alt=
"<?=$objResult["
pdDetail
"];?>"
width=
"115"
height=
"140"
>
09.
</td>
10.
<td width=150>
11.
ชื่อสินค้า : <?=
$objResult
[
"pdName"
];?><br>
12.
ราคา : <span
class
=
"price"
><?=number_format(
$objResult
[
"pdPrice"
],2);?></span> บาท <br>
13.
<!--จำนวนสินค้า : <input type=
"text"
id=
"txt<?=$intRows;?>"
value=
""
size=
"1"
><br>-->
14.
15.
<select name=
"select1"
>
16.
<?
17.
$n
=0;
18.
while
(
$n
<
$objResult
[
"pdQty"
] )
19.
{
20.
$n
++;
21.
22.
?>
23.
<option value=
"$n"
><?=
$n
;?></option>
24.
<?
25.
}
26.
?>
27.
</select>
28.
29.
<input type=
"button"
value=
"ซื้อ"
onClick=
"location.href='add1_cart.php?pdID=<?=$objResult["
pdID
"];?> "
>
30.
</td>