How to display the MYSQL data in Value within the input

0

This is my PHP code:

$result = mysqli_query($conn, "SELECT * FROM config WHERE id IN (1,2,3)");
$sdda = mysqli_fetch_assoc($result);

This is HTML:

<div class="col-sm-12 col-lg-6">
  <div class="form-group">
    <label>About Text:</label> <i class="fa fa-info-circle" data-toggle="tooltip" title="Player About Text"></i>
    <input type="text" name="filmes" class="form-control" value="<?php echo $sdda['id(x)'];; ?>">

  </div>
</div>

I would like to know how I can display the data of only one id, such as id = 2 in value , could anyone help me?

    
asked by anonymous 11.10.2018 / 13:43

0 answers