title: how do I insert a api json to my database
body: <p>good day im trying somethings with php and a api json to make te info from the api to a json array an then to mij database but it doesn't do anything can some one help me </p>
  
  <p>this is my script</p>
  
  <pre><code>&lt;?Php
  $connect = mysqli_connect("localhost","test","test","beers");
  $url = file_get_contents("https://api.punkapi.com/v2/beers");
  $json = json_decode($url, true);
  
  
  foreach ($json as $row) {
  
  
          $sql =  "INSERT INTO Brewdog (naam, tagline, omschrijving) VALUES ('".$row['name']."','".$row['tagline']."',,'".$row['description']."')";
          mysqli_query($connect, $sql);
  
  
  
  
  }
  echo "klaar is kees";
  ?&gt;
  </code></pre>