|
![](/images/resource/spacer.gif) |
|
สอบถามปัญหา radio ใน TD เดียวกัน (Array) ทำไงให้ไม่ทับกัน |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ผมต้องการติ๊กสถานะ ของ TD ของใครของมัน
ไม่ทราบว่าต้องเเก้ไขตรงไหนครับ ขอบคุณครับ
![a a](https://www.thaicreate.com/upload/stock/20170410224950.jpg?v=1001)
ต้องการ ติ๊ก คนละ ตารางครับ
![as as](https://www.thaicreate.com/upload/stock/20170410225032.jpg?v=1001)
นี้โค็ดครับ
Code (PHP)
<div class="row">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th ><center>ชื่อสินค้า</center></th>
<th style="width: 100px"><center>โหล</center></th>
<th style="width: 100px"><center>ชิ้น</center></th>
<th style="width: 100px"><center>ส่วนลด</center></th>
<th style="width: 100px"><center>ราคา</center></th>
<th style="width: 200px"><center>สถานะ</center></th>
</tr>
</thead>
<tbody>
<?php
include 'connectdbPHP.php.';
$sql = mysql_query("SELECT id,id_cart,name_product,amount1,amount2,discount,list_discount,sum FROM tb_cart_detail
LEFT JOIN tb_product ON (tb_cart_detail.id_product = tb_product.id_product)
WHERE tb_cart_detail.id_cart = '" . $_GET['id_cart'] . "' ");
$detailorder = array();
while ($row = mysql_fetch_array($sql)) {
$detailorder[] = $row;
}
foreach ($detailorder as $row) {
echo '<tr>';
echo '<td>' . $row['name_product'] . '</td>';
echo '<td>' . $row['amount1'] . '</td>';
echo '<td>' . $row['amount2'] . '</td>';
echo '<td>' . $row['discount'] . $row['list_discount'] . '</td>';
echo '<td>' . $row['sum'] . '</td>';
echo '<td ><input type="radio" onclick="alerrt()" style="text-align:center;" name="radios" id="radio1"><lable> มีของ </lable> '
. '<input type="radio" onclick="alerrt()" style="text-align:center;" name="radios" id="radio2"><lable> ไม่มีของ</lable> '
. '<input type="radio" onclick="alerrt()" style="text-align:center;" name="radios" id="radio3"><lable> รอของ</lable></td>';
echo '</tr>';
}
//Database::disconnect();
?>
</tbody>
</table>
ขอรบกสนด้วยครับ
Tag : PHP, HTML/CSS, JavaScript, Windows
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2017-04-10 22:53:34 |
By :
CSASABAHOZ |
View :
665 |
Reply :
3 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ขอบคุณครับที่ ช่วยเหลือ ต้องเอาไปใส่เเล้ว
ใช้ไม่ได้ ครับบ มันยัง ไม่เเบ่ง radio กัน ครับ
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2017-04-11 16:07:31 |
By :
CSASABAHOZ |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ขอดู code ปัจจุบันครับ
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2017-04-12 15:33:22 |
By :
dudesaranyu |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 02
|