<select name="ComboSATU">
<option value="2000">2000</option>
sampai dengan
<option value="2005">2005</option>
</select>
<select name="ComboDUA">
<option value="2002">2002</option>
sampai dengan
<option value="2005">2005</option>
</select>
<?php
session_start();
$ID_test = $_POST['ID_test'];
$preset = $_POST['preset'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Equity Indonesia</title>
<link rel="stylesheet" type="text/css" href="css/accordion_glam.css" />
<link rel="stylesheet" type="text/css" href="css/style3.css" />
<style type="text/css">
<!--
.style1 {font-size: 10px}
-->
</style>
</head>
<body>
<div id="header">
<div class="shell"><div class="logo"> <img src="images/Logo-Equity.png" align="left" height="95"/></div>
<div class="right_header"></div>
</div></div>
<br />
<div id="main_container">
<div class="main_content">
<br /> <br />
<div class="center_content">
<div class="right_content">
<?php
include "main_function_formbec.php";
?>
<table width="1050px" id="rounded-corner-buttom">
<tr>
<th width="201">Sub Item</th>
<th width="176">important d</th>
<th width="80" align="center" valign="middle">important test</th>
<th width="146">selisih</th>
<th width="185">degree</th>
<th width="93" align="center" valign="middle">idxdegree</th>
<th width="212" align="center" valign="middle">slisihxdegree</th>
</tr>
<?php
$member = $_GET['member'];
$ID_member = $_GET['ID_member'];
$sqlpreset = mysql_query ("select * from tb_".$member."".$ID_member." where nama_preset = '".$preset."'");
while ($preset = mysql_fetch_array($sqlpreset))
{
?>
<tr>
<td align="left" valign="middle"><?php echo $preset['ID_sub_kategori']; ?></td>
<td align="left" valign="middle"><?php echo $preset['important']; ?></td>
<td><?php include "main_function.php";
$sqltest = mysql_query("select * from tb_parameter where ID_test = '".$ID_test."'");
while($datatest = mysql_fetch_array($sqltest))
{
echo $datatest[$preset['ID_sub_kategori']];
}
?></td>
<!--di bawah ini saya mau nampilin selisih antara important test sama important d,-->
<td><?php echo $datatest[$preset['ID_sub_kategori']]-$preset['important'];?></td>
<!---->
<td><?php echo $preset['degree']; ?></td>
<td><?php echo $b=$preset['degree']*$preset['important']; ?></td>
<td><?php ?></td>
</tr>
<?php
}
?> <tr><td height="27">jumlah</td>
<td> </td>
<td></td>
<td></td>
<td></td>
<!--di bawah ini saya mau nampilin jumlah dari idXdegree ,-->
<td> <?php
$a=array($b);
echo array_sum($a);?></td>
<!---->
<td></td></tr>
</table>
<h2></h2>
</div>
<!-- end of right content-->
</div> <!--end of center content -->
<div class="clear"></div>
</div> <!--end of main content-->
<div class="footer"></div>
</div>
</body>
<br />
</html>