{ ?> <tr <? if ($sno%2==1) { ?> bgcolor="#F5F2F1" <? } ?>> <td align="center" width="13%"><?php echo $sno; ?> </td> <td align="center"><?php echo $row['item_name']; ?> </td> <td align="center"><?php echo $row['quantiy']; ?> <?php echo getunittDetail('unit_name', 'rec_id', $row['quantity_unit']); ?> </td> <td align="center"><?php echo $row['descriptions']; ?> </td> <td align="center"><input type="text" name="quantity_<?php echo $row['rec_id']; ?> " id="quantity_<?php echo $row['rec_id']; ?> " size="3"/><a href="javascript:;get_frm('up_date.php','<?php echo $row["rec_id"]; ?>
foreach($_SESSION['cart'] as $cartItems) { foreach($cartItems as $prodcut_id) { $sql = "select * from ms_stock_master where rec_id = '$prodcut_id'"; $result = mysql_query($sql) or die ("Invalid query : ".$sql."<br>".mysql_errno()." : ".mysql_error());; if(mysql_num_rows($result)>0) { $row = mysql_fetch_array($result); ?> <tr> <td> <?=$row['item_name']?> </td> <td> <?=$_SESSION["session_qty_$prodcut_id"]?> <?=getunittDetail('unit_name','rec_id', $row['quantity_unit'])?> </td> <td> <input name="delete_<?=$prodcut_id?>" vaule="1" type="checkbox"> <input type="hidden" name="update_cart[]" id="update_cart[]" value="<?=$prodcut_id?>"/> </td> </tr> <? } } } ?> <tr> <td> <input type="submit" name="btn_remove" id="btn_remove" value="Remove"/> </td>