title: ParseError syntax error, unexpected 'while' (T_WHILE)
body: <pre><code>&lt;?php
  $server = "localhost";
  $username = "root";
  $password = "";
  $database = "jaka_crud_ci";
  
  mysqli_connect($server, $username, $password, $database);
  
  $query = "SELECT * FROM pembeli";
  $result = mysqli_query($query)
  
  while ( $buyer = mysqli_fetch_assoc($result)){
  echo $buyer ["nama_pembeli"];
  echo $buyer ["nama_barang"];
  echo $buyer ["nama_retribusi"];
  }
  ?&gt;
  </code></pre>
  
  <p>code above displaying  syntax error, unexpected 'while' (T_WHILE). How it will be free from error? Help me</p>