나는 당신의 도움이 필요합니다. 을 반복하면서 PHP를 사용하는 테이블이 있으며 테이블의 선택된 행에서 ID를 가져 와서 다른 페이지로 보내는 방법에 대한 도움이 필요합니다. 테이블에서 세부 정보를 볼 수 없기 때문에 전체 테이블에서 세부 정보 나 쿼리를 보려면 ID가 필요하므로이 작업을 수행해야합니다. 반복하면서 PHP를 사용하여 테이블에서 ID 보내기 및 가져 오기
다음
내 코드<?php
include('config.php');
session_start();
$table = "select * from rekuest";
$select = mysql_query($table);
$user = $_SESSION['username'];
?>
<head>
<title>Home</title>
<link href="css/960.css" rel="stylesheet" media="screen" />
<link href="css/defaultTheme.css" rel="stylesheet" media="screen" />
<link href="css/myTheme.css" rel="stylesheet" media="screen" />
<script src="js/jquery-1.6.1.js"></script>
<script src="js/jquery.fixedheadertable.min.js"></script>
<script src="js/demo.js"></script>
<style type="text/css" media="screen">
#tombol {
display: block;
width: 90px;
height: 30px;
background: url(img/tombol_normal2.png) no-repeat top;
}
#tombol:active {
background: url(img/tombol_pressed.png) no-repeat bottom;
}
</style>
</head>
<body>
<h1 align="center">List All Of Request</h1>
<h2 align="center">Welcome, <?php echo $_SESSION['username']; ?></h2>
<form>
<input type="button" name="new" value="New Request" align="right"
onClick="window.location='form.php'"/>
<input type="button" onClick="window.location = 'logout.php?exit=yes'" class="myButton" value="Logout"/>
</form>
<div id="divider">
</div>
<table width="900" align="center" cellpadding="0" cellspacing="0" class="myTable04">
<thead>
<tr>
<th>No Reff</th>
<th>Subjek Request</th>
<th width="20px">Permintaan</th>
<th>Waktu</th>
<th>Jenis Request</th>
<th>Customer</th>
<th>Sifat Requirement</th>
<th>Pelaksana</th>
<th>Status</th>
<th>Respon</th>
<th>Rekomen</th>
<th>Nama File</th>
<th>Attachment</th>
<th>Detail</th>
</tr>
</thead>
<tbody>
<?php while($row = mysql_fetch_array($select)) { ?>
<tr>
<td><?php echo $row['id_rekuest']; ?></td>
<td><?php echo $row['subjek']; ?></td>
<td><?php echo $row['permintaan']; ?></td>
<td><?php echo $row['waktu']; ?></td>
<td><?php echo $row['jenis']; ?></td>
<td><?php echo $row['customer']; ?></td>
<td><?php echo $row['sifat']; ?></td>
<td><?php echo $row['pelaksana']; ?></td>
<td><?php echo $row['status']; ?></td>
<td><?php ?></td>
<td><?php ?></td>
<td><?php ?></td>
<td><?php ?></td>
<td><a id="tombol" style="cursor:pointer" onClick="window.location='detail.php'"></a></td>
</tr>
<?php } ?>
</tbody>
</table>
감사합니다 알렉스, 그래, 당신은 바로 대답에 대한, 그리고 내 게시물을 복구하는 데 많은 감사드립니다. 나는이 포럼과 PHP에서 매우 nubie이다. –