picture explanation I am trying to display the option_value(3rd colum) value into my code. I just tried testing mysqli_fetch_array method but it showed error undefined offset 1 and 2. Can you suggest any method to display the value separately into the page?
<?php
$connection = mysqli_connect("localhost", "root","","adminpanel");
$query = "SELECT option_value FROM settings";
$query_run = mysqli_query($connection,$query);
if(mysqli_num_rows($query_run)>0)
{
$row = mysqli_fetch_array($query_run)
?>
<form action="code.php" method="POST">
<div class="form-group">
<label>Fine rate :</label>
<input type="text" name="fine_rate" value="<?php echo $row[0]; ?>" class="form-control">
</div>
<div class="form-group">
<label>Email template for issued books:</label>
<textarea name="issue_template" class="form-control"><?php echo $row[1]; ?></textarea>
</div>
<div class="form-group">
<label>Email template for return books:</label>
<textarea name="return_template" class="form-control"><?php echo $row[2]; ?></textarea>
</div>
</form>
<?php
}
?>