Hello i have a problem when i try to echo $row[“sugeneruoja”]; at the end it not shows the answer it just blank maybe could help me ?
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Mėnesinė įmoka įmoka: <input type="text" name="MonInvestment" value="0">
<?php echo $MonInvestmentErr;?>
<br><br>
Vienkartinė įmoka: <input type="text" name="Investment" value="0">
<?php echo $InvestmentErr;?>
<br><br>
Norima sukaupti suma: <input type="text" name="TotalInvestmentDesire">
<span class="error">* <?php echo $TotalInvestmentDesireErr;?></span>
<br><br>
<?php
if(mysqli_num_rows($result) )
{
while($row = mysqli_fetch_array($result))
{
?>
<form method="POST">
<select name="inv">
<option><?php echo $row["rizikos_lygis"];?></option>
<option value=<?php echo $row["sugeneruoja"]; ?>><?php echo $row["pavadinimas"];?> <?php echo $row["sugeneruoja"]; ?></option>
</select>
<input type="submit" name="submit" value="Apskaičiuoti">
</form>
<?php
}
}
?>
</form>
</div>
<br>
<?php
if(isset($_POST['submit'])){
echo $row["sugeneruoja"];
}
?>