25 lines
710 B
PHP
25 lines
710 B
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
|
|
$chart_id = $_REQUEST['chart_id'];
|
|
error_log("chart_id" . $chart_id);
|
|
$sql = "select * from rule_chart where chart_id ='" . $chart_id . "'";
|
|
error_log('message ' . $sql);
|
|
$result = mysqli_query($conn, $sql);
|
|
$row = mysqli_fetch_array($result);
|
|
$sql1 = "select distinct result_disp from rule_equation where rule_eq_id in (" . $row['rule_equation_ids'] . ")";
|
|
error_log('message ' . $sql1);
|
|
$result1 = mysqli_query($conn, $sql1);
|
|
?>
|
|
<option value="">select result</option>
|
|
<?
|
|
while ($row1 = mysqli_fetch_array($result1)) {
|
|
?>
|
|
<option value="<? echo $row1['result_disp']; ?>"><? echo $row1['result_disp']; ?></option>
|
|
<?
|
|
}
|
|
|
|
|
|
|
|
?>
|