<?php
session_start();		 
include "connect.php";
	$cmpmid=$_SESSION['linkarisecmpmid'];
	if (isset($_REQUEST['id'])) {
			
		$id = intval($_REQUEST['id']);
	}
		
?>
			
		
		<input type="hidden" name="jobworkdid" value="<?php echo $id;?>">
	
			<table  border="1" style="width:100%" class="table table-bordered table-hover">
		<tr> <th>Sr No.</th><th>Item Name</th> <th>Remarks</th> <th>Item Qty</th></tr>
													<?php

		$query11 = "select * from res_jobworkitem_detail where jobworkdid=$id";
															$stmt11=mysqli_query($conn,$query11);
															$i=1;
															$itemname="";
															$itemqty=0;
															$itemdetail="";
															if(mysqli_num_rows($stmt11) > 0)
															{
																while($rt11 = mysqli_fetch_assoc($stmt11))
																{
																	$itemname=$rt11['itemname'];
																	$itemdetail=$rt11['itemdetail'];
																	$itemqty=$rt11['itemqty'];
																	
																	
																
															
														?>													
													
			<tr>
													<td><?php echo $i++;?></td>
													<td><?php echo $itemname;?></td>
													<td><?php echo $itemdetail;?></td>
													<td><?php echo $itemqty;?></td>
													
													
												</tr>
															<?php }} ?>
												
												</table>
			
	
	