我试图将表值访问inventory_issue,但我无法做到.... 我能够获得复选框的值,但不能获得其他值。 任何人都可以帮我这个..?
if($select=='soldering_wire') {
?>
<!-- <form class="push_1" id="inventory2" action="inventory_issue.php" method="post" onSubmit="return false;"> -->
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
<tr>
<th>Batch Number</th>
<th>Gauge</th>
<th>Check to Approve</th>
</tr>
</thead>
<?php
$sql="SELECT * FROM `$select`";
//echo $sql;
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
echo "<tr class=". "gradeX>";
echo "<td>" . $row[0] . "</td>";
echo "<td>" . $row[1] . "</td>";
?>
<td><input type="checkbox" name="check" value="<?php echo $row[0];?>"> </td>
<?php
echo "</tr>";
}
?>
</table>
<?php } ?>
<button id="sub" class="form-control btn btn-primary"onClick="aj2();">Issue</button>
<span id="result2"></span>
</form>