title: INSERT INTO doesnt work (only at one point)
body: <p>I have a problem...
  I have a form on my webpage where the admin is able to create an event via an sql "INSERT INTO" command.
  On the same site he is able to view the registrations for those events and is able to accept or decline those registrations via an sql "UPDATE" command.
  THe whole registrations part works just fine... but not the Event creation...
  The code saves all the needed data of the form (date, time, etc...) and goves back a $check variable, if the variable is true, all data is received and the code sends the "INSERT INTO" command... which doesnt work... the $chekc variable is true...</p>
  
  <p>This is the code for the form:</p>
  
  <pre><code>&lt;form method="post" action=""&gt;
  &lt;input type="number" name="Tag" title="Tag" placeholder="Tag" Required&gt;
  &lt;input type="number" name="Monat" title="Monat" placeholder="Monat" Required&gt;
  &lt;input type="number" name="Jahr" title="Jahr" placeholder="Jahr" Required&gt;
  &lt;input type="number" name="Stunde" title="Stunde" placeholder="Stunde" Required&gt;
  &lt;input type="number" name="Minute" title="Minute" placeholder="Minute" Required&gt;
  &lt;input type="text" name="Ort" title="Ort" placeholder="Ort" Required&gt;
  &lt;input type="number" name="Preis" title="Preis" placeholder="Preis" Required&gt;
  &lt;input type="number" name="AHelfer" title="AHelfer" placeholder="Aufbau Helfer" Required&gt;
  &lt;input type="number" name="BHelfer" title="BHelfer" placeholder="Abbau Helfer" Required&gt;
  &lt;input type="submit" name="Erstellen" title="Erstellen" value="Erstellen"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>this is the code which verifies and insets the data:</p>
  
  <pre><code>if (!empty($_POST[Erstellen]))
      {
          $check = true;
          if (!empty($_POST[Tag]))
          {
              $Tag = str_replace('\'', '', str_replace('"', '', $_POST["Tag"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[Monat]))
          {
              $Monat = str_replace('\'', '', str_replace('"', '', $_POST["Monat"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[Jahr]))
          {
              $Jahr = str_replace('\'', '', str_replace('"', '', $_POST["Jahr"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[Stunde]))
          {
              $Stunde = str_replace('\'', '', str_replace('"', '', $_POST["Stunde"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[Minute]))
          {
              $Minute = str_replace('\'', '', str_replace('"', '', $_POST["Minute"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[Ort]))
          {
              $Ort = str_replace('\'', '', str_replace('"', '', $_POST["Ort"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[Preis]))
          {
              $Preis = str_replace('\'', '', str_replace('"', '', $_POST["Preis"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[AHelfer]))
          {
              $AHelfer = str_replace('\'', '', str_replace('"', '', $_POST["AHelfer"]));
          }else{
              $check = false;
          }
          if (!empty($_POST[BHelfer]))
          {
              $BHelfer = str_replace('\'', '', str_replace('"', '', $_POST["BHelfer"]));
          }else{
              $check = false;
          }
  
          if ($check)
          {
              echo 'check ';
              $sql = "INSERT INTO Veranstaltungen (Tag, Monat, Jahr, Stunde, Minute, Preis, Ort, AHelfer, BHelfer) VALUES ('$Tag', '$Monat', '$Jahr', $Stunde', '$Minute', '$Preis', '$Ort', '$AHelfer', '$BHelfer')";
              $eintragen = mysqli_query($verbindung, $sql);
              echo $eintragen;
          }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/Uz8lO.png" rel="nofollow">This is the db structure</a></p>