1 <?php
2 $value = $res['id'];
3 $selectquery2 = " select id,name from table where id = '$value'";
4 $resu2 = $database->query($selectquery2);
5 if ($res2 = mysqli_fetch_array($resu2)) { ?>
6 <td name="id"><?php echo $res2['name']; ?></td>
7 <?php }
8 ?>
9