title: PHP INSERT INTO MySQL not working?
body: <p>When I try to insert anything into my database it won't show any errors, but the data isn't in the database. I checked table name and structure and this is how its ment to be...</p>
  
  <p>The SELECT was a tryout and that one is working properly, except for the INSERT INTO above, but why?</p>
  
  <pre><code>&lt;?php
      error_reporting(0);
      require "../database/MySQL.php";
  
      $sql = "INSERT INTO zb_employees (name, option, image_path, email) VALUES ('1', '2', '3', '4')";
      $db-&gt;query($sql);
      echo $db-&gt;affected_rows;
  
      echo '&lt;br&gt;';
  
      $sql = "SELECT * FROM zb_employees";
      $result = $db-&gt;query($sql);
  
      if ( $result-&gt;num_rows &gt; 0 ) {
        while($row = $result-&gt;fetch_assoc()) {
          $row["name"];
        }
      } else {
        echo "0 Employees found!";
      }
  
      $db-&gt;close();
  </code></pre>