0
드롭 다운을 정렬하는 데 문제가 있습니다.드롭 다운 정렬 할 수 없습니다.
지금까지 내 데이터 테이블은 ID, 이름, 위치 및 응용 프로그램 날짜를 그림과 같이 정렬 할 수 있습니다. 그러나 내 데이터 테이블 카테고리를 정렬 할 수 없습니다. 카테고리를 어떻게 분류 할 수 있습니까? 귀하의 도움을 주시면 감사하겠습니다.
다음은 데이터 테이블에 데이터를 표시하는 데 사용하는 코드입니다.
Here is a picture of my user interface 링크를 사용하여 죄송합니다. 아직 신참이며 아직 사진을 사용할 수 없습니다. 당신이해야 할 일은
<table class="table isSearch table-bordered table-striped" id="table" cellspacing="0">
<thead>
<tr class="table-heads ">
<th>ID</th>
<th>Name</th> <!-- Table Header -->
<th>Position</th>
<th>Application Date</th>
<th>Category</th>
<th>Arrange Interview</th>
<th>Online Interview</th></tr>
</thead>
<tbody>
<?php
include"../database.php";
$query="SELECT user.name, job_application.created_at,
job.job_name, job_application_id, status_id, email, skypeid
FROM user, job_application, job
WHERE user.user_id = job_application.user_id
AND job.job_id = job_application.job_id
ORDER BY STATUS_ID ASC";
$result=mysqli_query ($connect,$query);
while($data = mysqli_fetch_array($result))
{
echo
"<tr><form action='update_status.php?id=".$data['job_application_id']."' method='post'>";
echo"<td>".$data['job_application_id']."</td>";
echo"<td>".$data['name']."</td>";
echo"<td>".$data['job_name']."</td>";
echo"<td>".$data['created_at']."</td>";
echo"<td>
<select name='status'>
<option name='status' value='1'";?><?php if ($data['status_id']=='1') {echo " selected";}echo "> Waiting </option>
<option name='status' value='2'";?><?php if ($data['status_id']=='2') {echo " selected";}echo "> Rejected </option>
<option name='status' value='3'";?><?php if ($data['status_id']=='3') {echo " selected";}echo "> Interviewed </option>
<option name='status' value='4'";?><?php if ($data['status_id']=='4') {echo " selected";}echo "> Hired </option>
</select>
<br>
<input type='submit' name='submit' value='Save'>
</form>
</td>";
echo"<td>
<center><a href='email.php?email=".$data['email']."&id=".$data['job_application_id']." 'target='_blank' style='border-radius:30px' class='btn btn-secondary btn-sm'>E-Mail</a><center>
</td>";
echo"<td><center><a href='skype:".$data['skypeid']."?call' style='border-radius:30px' class='btn btn-primary btn-sm'><img src='assets/images/skype.png' width='25 height='13'>Call</a><center></td>";
echo"</tr>";
}
?>
</tbody>
</table>