$serachData = mysql_query($query); while ($datas = mysql_fetch_array($serachData)) { $id = $datas[0]; $persons = get_person_detial($id); $person = mysql_fetch_assoc($persons); ?> <tbody> <tr> <td><?php echo $id; ?> </td> <td> <?php if ($person['TITLE_ID'] != 0) { echo get_person_title_string($person['TITLE_ID']) . ' ' . get_person_name_string($id) . " " . get_person_surname_string($id); } else { echo get_person_name_string($id) . " " . get_person_surname_string($id); } ?> </td> <td><?php print_person_phone_string($id); ?> </td> <td><?php echo get_person_province_string($id, 1); ?> </td> <td> <?php
?> ')">family tree</a> </h5> </div> <div class="col-xs-4 col-xs-offset-0"> <h5> <a class="mdi-editor-mode-edit" onClick="javascript:window.location.assign('manage_person_detial.php?id=<?php echo $brother['ID']; ?> ')">แก้ไขข้อมูล</a> </h5> </div> <div class="col-xs-4"> <h5> <a class="mdi-content-remove" onClick="del_child('<?php echo get_person_title_string($brother['TITLE_ID']) . ' ' . get_person_name_string($brother['ID']) . ' ' . get_person_surname_string($brother['ID']); ?> ', '<?php echo $id; ?> ', '<?php echo $brother['ID']; ?> ')">ลบข้อมูล</a> </h5> </div> </div> <?php $count++; } if ($count == 1) {