Добрый день. Не записывает в базу mysql днные

<html>
<head>
  <?php
    include 'auth_check.php';
    include 'menu.php';
  ?>
  <link rel="stylesheet" type="text/css" href="css/main.css">
  <link rel="stylesheet" type="text/css" href="css/tablelist.css">
  <link rel="stylesheet" type="text/css" href="css/poup-up.css">

  <style>
#grid-form {
display: grid;

grid-template-columns: 200px 200px; /* колонки */
grid-gap: 5px; /* Отступы между гридом */
align-items: center;
}
#grid-form > div {

}
#grid-form > .right-a{
  text-align: right;
}
</style>
  <title>
    Реакторы
  </title>
<body>
  <div class="area">
   <! –– ДОБАВЛЕНИЕ НОВОГО ––>
  <div style="margin: 1%; width:48%;height: 97%; float: left;box-shadow: 0 0 5px rgba(0,0,0,0.5);overflow-y: auto;">
    <h2 align="center">Добавить новый реактор</h2>
    <form  action="create/create-react.php" method="p`введите сюда код`ost" >
      <div id="grid-form">
        <div class="right-a">Имя:&nbsp;</div>
        <div><input type="text" size=10 name="name" /></div>
        <div class="right-a">Объем:&nbsp;</div>
        <div><input type="text" size=10 name="size" /></div>
        <div class="right-a">Мин. температура:&nbsp;</div>
        <div><input type="text" size=10 name="temp-min" /></div>
        <div class="right-a">Макс. температура:&nbsp;</div>
        <div><input type="text" size=10 name="temp-max" /></div>
        <div class="right-a">Применяемые жидкости:&nbsp;</div>
        <div><select multiple size="10" name="liquid[]" style="width:180px" title="Нажимайте ctrl или shift для множественного выбора из списка.">
      <?php
    #Тут идет поиск жидкостей
    if ($result0 = mysqli_query($conn, "SELECT id, name FROM liquid where for_react='1' order by id"))
   {
    while( $row0 = mysqli_fetch_assoc($result0) )
    {
      echo '<option value="'.$row0['id'].'">'.$row0['name'].'</option>';
    }
      mysqli_free_result($result0);
   }
    ?>
          </select>
        </div>
        <div></div>
        <div><button class="btn" title="Сохранить"><i class="fa fa-floppy-o" style="width:200px;"> Сохранить</i></button></div>
      </div>

</form>
  </div>
  <! –– ИЗМЕНЕНИЕ СУЩЕСТВУЮЩИХ ––>
 <div style="margin: 1%;width:48%;height: 97%; float: left;box-shadow: 0 0 5px rgba(0,0,0,0.5);overflow-y: auto;">
  <h2 align="center">Настроить имеющиеся реакторы</h2>

  <table class="table-fill" align="center" style="width:100%">
  <thead>
  <tr>
  <th class="text-left">Имя</th>
  <th class="text-left">Объем</th>
  <th class="text-left">Мин.<br>темпер.</th>
  <th class="text-left">Макс.<br>темпер.</th>
  </tr>
  </thead>
  <tbody class="table-hover">

    <?php
        if ($result4 = mysqli_query($conn, "SELECT * FROM react  order by id")) {
      while( $row4 = mysqli_fetch_assoc($result4) ){
        echo '<tr>
        <td class="text-left">'.$row4['name'].'</td>
        <td class="text-left">'.$row4['size'].'</td>
        <td class="text-left">'.$row4['temp-min'].'</td>
        <td class="text-left">'.$row4['temp-max'].'</td>

        <td><button class="btn" title="Редактировать" onclick="
         window.location.href=`#zatemnenie`;
         javascript:document.location.reload()

         document.getElementById(`names`).value = `'.$row4['name'].'`;
         document.getElementById(`size`).value = `'.$row4['size'].'`;
         document.getElementById(`temp-min`).value = `'.$row4['temp-min'].'`;
         document.getElementById(`temp-max`).value = `'.$row4['temp-max'].'`;
         document.cookie = `id_react='.$row4['id'].'; max-age=3600`;
         " ><i class="fa fa-pencil-alt" style="width:40px"></i></button> </td>
         <td>
         <form  action="delete/delete-react.php" method="post">
          <input type="hidden" name="id_react" id="id_react"  autocomplete="off" value="'.$row4['id'].'"/>
        <button class="btn" style="margin-top: 15px;" title="Удалить"><i class="fa fa-trash-o" style="width:40px"></i></button></td>
        </form>
        </td>
        </tr>';



        }
           mysqli_free_result($result4);
    }

    ?>

  </tbody>
  </table>
<?php include_once 'edit_react.php';?>
 </div>
 </div>
</body>
</html>

Помогите разобраться со скриптом. Спасибо.


Ответы (0 шт):