title: php+sql help me please
body: <p>This code is working fine.</p>
  
  <pre><code>    $sql = "INSERT INTO EventTest (name,text,lat,lon,date,time,type,number,adress) VALUES ('$name','$text','$lat','$lon','$date','$time','$type','$number','$address')";
      $sth = $con-&gt;prepare($sql);
      $sth-&gt;execute();
  </code></pre>
  
  <p>I've added this code after the previous block. </p>
  
  <pre><code>    $sql1 = "SELECT id FROM EventTest ORDER BY id DESC LIMIT 1";
      $sth1 = $con-&gt;prepare($sql1);
      $sth1-&gt;execute();
      $sth1-&gt;bind_result($id)
      while($sth1-&gt;fetch()) {     
      $data['YES'] = $id;
      }
  </code></pre>
  
  <p>The table has all the fields.
  This code is not working.</p>
  
  <p>I can't recieve the error from the server.</p>