HEX
Server: Apache/2
System: Linux sv2.klungbaan.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: klungadmin (1002)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/klungadmin/domains/klungbaan.com/private_html/bureau/search_result.php
<?php
 require "connect.php";
 $sql = "SELECT * FROM tb_register where tel like '%{$_POST['search']}%' AND event_id={$_POST['event']}";
$query = mysqli_query($conn,$sql);
?>
<div class="col-md-12">
 <table class="table table-bordered">
 <thead>
 <tr>
 <th>ชื่อ</th>
 <th>นามสกุล</th>
 <th>อายุ</th>
 <th>เบอร์</th>
 </tr>
 </thead>
 <tbody>
 <?php  while ($result = mysqli_fetch_assoc($query)) { ?>
 <tr>
 <td><?php echo $result['name'];?></td>
 <td><?php echo $result['surName'];?></td>
 <td><?php echo $result['age'];?></td>
 <td><?php echo $result['tel'];?></td>
 </tr>
 <?php  } ?>
 </tbody>
 </table>
</div>