title: how to sort selected data at php to mysql from flutter
body: <p>here is my code at flutter</p>
  
  <pre><code>void initState(){
      var url = "my web";
      String id =  widget.list[widget.index]['id_pemesanan'];
      http.post(url, body: {
          'id_pemesanan': id,
      });
      super.initState();
  }
  </code></pre>
  
  <p>here is the code at my php</p>
  
  <pre><code>&lt;?php
  include 'db.php';
  $id_pemesanan = $_POST['id_pemesanan'];
  
  $queryResult = $connect-&gt;query("SELECT * FROM Odr_Msk_Detail WHERE id_pemesanan = '$id_pemesanan'");
  
  $result=array();
  
  while($fetchData=$queryResult-&gt;fetch_assoc()){
      $result[]=$fetchData;
  }
  echo json_encode($result);
  ?&gt;
  </code></pre>
  
  <p>if i change the data at <code>$id_pemesanan</code> to directly my data id in my database, it works, but if i use <code>$id_pemesanan</code> it doesnt shows anything in my listview </p>