title: array || illegal offset type
body: <p>hello guys i got problem with the arrays. i want to save array to the table but i receive this :</p>
  
  <pre><code>illegal offset type in C:\xampp\htdocs\app-mt\php\proses-edit-aplikasi.php on line 13
  
  illegal offset type in C:\xampp\htdocs\app-mt\php\proses-edit-aplikasi.php on line 14
  
  illegal offset type in C:\xampp\htdocs\app-mt\php\proses-edit-aplikasi.php on line 15
  </code></pre>
  
  <p>it show to this code</p>
  
  <pre><code>[1] =&gt; $value1,
  [2] =&gt; $value2,
  [3] =&gt; $value3
  </code></pre>
  
  <p>this is full of code</p>
  
  <pre><code>$value1 = $_POST['value1'];
  $value2 = $_POST['value2'];
  $value3 = $_POST['value3'];
  
  $data_value = Array(
  [1] =&gt; $value1,
  [2] =&gt; $value2,
  [3] =&gt; $value3
  );
  $array_value = serialize($data_value);
  
  $query = "UPDATE maintenance
      SET pic                                 = '$pic',
          application_name                    = '$nama',
          maintenance_date                    = '$tanggal',
          entry_by                            = '$pictrans'
  
      WHERE maintenance_id = '$id'";
  $query2 = "UPDATE INTO maintenance_detail
      SET value                               = '$array_value'
  
      WHERE maintenance_detail_id = '$id'";
  
  $hasil = mysqli_query($db, $query);
  $hasil2 = mysqli_query($db, $query2);
  </code></pre>
  
  <p>thank you</p>