if ($check) { ?> <table class="table" style="color:black"> <thead> <tr> <th>ลำดับ</th> <th>อักษรจีน</th> <th>pinyin</th> <th>อักษรไทย</th> <th> </th> <th> </th> </tr> </thead> <tbody> <?php $gen_others = get_gen_by_type(2); while ($gen_other = mysql_fetch_assoc($gen_others)) { $id = $gen_other['ID']; ?> <tr> <td><?php echo $gen_other['GENERATION_INDEX']; ?> </td> <td><?php echo $gen_other['GENERATION_NAME']; ?> </td> <td><?php echo $gen_other['GENERATION_PINYIN']; ?>
<div class="col-xs-3" > <h5 id="gen_th"> <?php $sql = get_gen_by_type(1); while ($rs = mysql_fetch_array($sql)) { if ($rs["ID"] == $person["GENERATION_ID"]) { echo $rs["GENERATION_TH"]; } } $sql = get_gen_by_type(2); while ($rs = mysql_fetch_array($sql)) { if ($rs["ID"] == $person["GENERATION_ID"]) { echo $rs["GENERATION_TH"]; } } $sql = get_gen_by_type(3); while ($rs = mysql_fetch_array($sql)) { if ($rs["ID"] == $person["GENERATION_ID"]) { echo $rs["GENERATION_TH"]; } } ?> </h5> </div> <div class="col-xs-1"> <h5>- ชื่อ</h5> </div> <div class="col-xs-2"> <input type="text" class="form-control"autofocus name="chinaname_thai" value="<?php echo $chinaname['CHINANAME_TH']; ?>