作者crazysky1019 (God Bless Mario)
看板PHP
標題Re: [請益] 有關PHP插入記錄
時間Mon Oct 10 21:58:32 2005
form是
<form action="<?php echo $editFormAction; ?>" name="form1" method="POST">
商品表格是
<tr>
<td class="unnamed1 style1">記錄編號</td>
<td class="unnamed1 style1">商品編號</td>
<td class="unnamed1 style1">商品名稱</td>
<td class="unnamed1 style1">商品單價</td>
<td class="unnamed1 style1">商品數量</td>
<td class="unnamed1 style1">商品總價</td>
<td class="unnamed1 style1"> </td>
</tr>
<?php $sum = 0; do { ?>
<?php //} while ($row_order_track = mysql_fetch_assoc($order_track)); ?> <?php //?>
<tr>
<td class="unnamed1 style1"><input name="id" type="text"
id="id" value="<?php echo $row_order_track['id']; ?>"
size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodid" type="text
" id="prodid" value="<?php echo $row_order_track['prodid'
]; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodname" type=
"text" id="prodname" value="<?php echo $row_order_track
['prodname']; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodprice" type=
"text" id="prodprice" value="<?php echo $row_order_track
['prodprice']; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodnum" type=
"text" id="prodnum" value="<?php echo $row_order_track
['prodnum']; ?>" size="3" readonly></td>
<td class="unnamed1 style1"><input name="prodtotal" type=
"text" id="prodtotal" value="<?php echo $row_order_track
['prodtotal']; ?>" size="3" readonly></td>
<?php $sum += $row_order_track['prodtotal'];?>
</tr>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.175.28.194
※ 編輯: crazysky1019 來自: 218.175.28.194 (10/10 22:00)