mysql - how to get selected index row of table using php? -
guy's need help. dont know how selected index row of table inserting data. example. have table this. i've thead (no, tanggal, no.polisi, netto) want make insert function (no , tanggal) only. how php? dont know how grab selected index of table
i hope can give me example `
<form name="table_1" id="table_1" class="table_1"> <table id="table_1" class="table_1" cellspacing='0' class="js-serial" border="2"> <thead> <tr> <th width="50"><center>no.</center></th> <th width="100"><center>tanggal</center></th> <th width="80"><center>no.polisi</center></th> <th width="60"><center>netto</center></th> </tr> </thead> <tbody> </tbody> </table> </form></div> <div id="kanan" class="btn btn-default"> <form name="table_2" id="table_2" class="table_2"> <table id="table_2" class="table_2" cellspacing='0' class="js-serial" border="2"> <thead> <tr> <th width="50"><center>no.</center></th> <th width="100"><center>tanggal</center></th> <th width="80"><center>no.polisi</center></th> <th width="60"><center>netto</center></th> </tr> </thead> <tbody> </tbody> </table> </form></div> <table> <tr> <td width=482>total keseluruhan netto :</td> <td width=30> <input type="text" id="total_netto" class="total_netto" type="text" name="total_netto" size="17" readonly="readonly" /> </td> </tr> </table>
`
Comments
Post a Comment