如何用ajax在数据库中输入2个值?或者你有另一个解决方案
PHP
$model_reservasi_detail = new TmReservasiDetail;
$model_reservasi_detail->IdReservasi = $model->IdReservasi;
$model_reservasi_detail->NoKamar = $_POST["IdKamarBed"][$i];
$model_reservasi_detail->IdKamar = $_POST["NoKamar"][$i];
AJAX
html += "<td align='center'><input type='checkbox' value='"+obj[key]["NoKamar"]+"' id='IdKamarBed_"+obj[key]["IdKamar"]+"' name='IdKamarBed[]'></td><td> </td><td align='center'><b>"+obj[key]["NoKamar"]+"</td><td align='center'><b>"+obj[key]["Kapasitas"]+"</b></td>";
在该代码中只输入NoKamar。如何输入IdKamar?我只能取代&#34; NoKamar&#34;与&#34; IdKamar&#34;