Re: [請益] 有關PHP插入記錄

看板PHP作者 (God Bless Mario)時間19年前 (2005/10/10 21:57), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/6 (看更多)
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">&nbsp;</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)
文章代碼(AID): #13IdDNY_ (PHP)
文章代碼(AID): #13IdDNY_ (PHP)