kenapa database tidak masuk dalam program?

Assalamualaikum teman teman sekolah koding, saya ada problem input database, kenapa ketika saya sudah inputkan datanya tetapi data tersebut tidak masuk ke database? mohon bantuannya

koneksi.php [<?php $hostName = "localhost"; $userName = "root"; $passWord = ""; $database = "skripsi";

$connect = mysqli_connect($hostName,$userName,$passWord) or die('Connection Failed'); $select = mysqli_select_db($connect,$database) or die('Database Failed'); ?>](https://link.com)

index.php [<!DOCTYPE html> <html lang="en">

<head>

&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;meta name=&quot;description&quot; content=&quot;&quot;&gt;
&lt;meta name=&quot;author&quot; content=&quot;&quot;&gt;
&lt;title&gt;Survey Kepuasan Pelanggan&lt;/title&gt;
&lt;link href=&quot;css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;link href=&quot;css/blog-post.css&quot; rel=&quot;stylesheet&quot;&gt;

</head>

<body background="">

&lt;!-- Navigation --&gt;
&lt;nav class=&quot;navbar navbar-inverse navbar-fixed-top&quot; role=&quot;navigation&quot;&gt;
    &lt;div class=&quot;container&quot;&gt;
        &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
        &lt;div class=&quot;navbar-header&quot;&gt;
            &lt;button type=&quot;button&quot; class=&quot;navbar-toggle&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#bs-example-navbar-collapse-1&quot;&gt;
                &lt;span class=&quot;sr-only&quot;&gt;Toggle navigation&lt;/span&gt;
                &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
                &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
                &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
            &lt;/button&gt;
            &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;E-SURVEY&lt;/a&gt;
        &lt;/div&gt;
        &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
        &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;bs-example-navbar-collapse-1&quot;&gt;
            &lt;ul class=&quot;nav navbar-nav navbar-right&quot;&gt;
                &lt;li&gt;&lt;a href=&quot;#login&quot; data-toggle=&quot;modal&quot;&gt;&lt;button class=&quot;btn btn-primary btn-sm&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-log-in&quot;&gt;&lt;/span&gt; Login&lt;/button&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
            &lt;ul class=&quot;nav navbar-nav&quot;&gt;
                &lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;#survey&quot; data-toggle=&quot;tab&quot;&gt;Survey&lt;/a&gt;&lt;/li&gt;
                
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;!-- /.navbar-collapse --&gt;
    &lt;/div&gt;
    &lt;!-- /.container --&gt;
&lt;/nav&gt;

&lt;div class=&quot;container&quot;&gt;
   
    &lt;div class=&quot;panel panel-default&quot; &gt;
      &lt;div class=&quot;panel-body&quot; style=&quot;background-color:#e6e6e6;&quot;&gt;
        &lt;div class=&quot;col-lg-12&quot;&gt;
            &lt;img class=&quot;img-responsive&quot; src=&quot;./images/bannersurvey.jpg&quot; alt=&quot;&quot; style=&quot;height:300px;width:1290px&quot;&gt;
            &lt;hr&gt;
        &lt;/div&gt;
          &lt;div class=&quot;col-lg-12&quot;&gt;
              &lt;p align=&quot;center&quot; style=&quot;background-color:black; color:white;&quot; &gt; &lt;font size=&quot;5&quot;&gt;SURVEY KEPUASAN PELANGGAN&lt;/font&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class=&quot;row&quot;&gt;
              &lt;div class=&quot;panel-body&quot;&gt;
                  &lt;form method=&#039;POST&#039; action=&#039;aksi_kuosioner.php&#039; onSubmit=\&quot;return validasisurvey(this)\&quot; &gt;
                      &lt;script language=&quot;javascript&quot;&gt;
                          function validasisurvey(form){
                              if (form.companyName.value == &quot;&quot;){
                                  alert(&quot;Anda belum mengisikan nama Anda.&quot;);
                                  form.companyName.focus();
                                  return (false);
                              }
                              if (form.companyAddress1.value == &quot;&quot;){
                                  alert(&quot;Anda belum mengisikan alamat Anda.&quot;);
                                  form.companyAddress1.focus();
                                  return (false);
                              }
                          }
                      &lt;/script&gt;
                      &lt;table class=&quot;table&quot; &gt; 
                          &lt;tr &gt;
                              &lt;td&gt;
                                  &lt;div class=&quot;form-horizontal&quot;  style=&quot;margin-top:20px;background-color:#fff;padding-top:20px;padding-bottom:20px;&quot;&gt;
                                      &lt;div class=&quot;page-header&quot; style=&quot;margin-left:30px;&quot;&gt;
                                        &lt;h3&gt;Informasi Pelanggan&lt;/h3&gt;
                                      &lt;/div&gt;
                                      &lt;div class=&quot;form-group&quot;&gt;
                                         &lt;label for=&quot;nama_pelanggan&quot; class=&quot;control-label col-sm-2&quot;&gt;Nama Pelanggan&lt;/label&gt;
                                         &lt;div class=&quot;col-sm-3&quot;&gt;
                                             &lt;div class=&quot;input-group&quot;&gt;
                                                 &lt;div class=&quot;input-group-addon&quot;&gt;
                                                     &lt;span class=&quot;glyphicon glyphicon-user&quot;&gt;&lt;/span&gt;
                                                 &lt;/div&gt;
                                                 &lt;input type=&quot;text&quot; id=&quot;nama_pelanggan&quot; class=&quot;form-control&quot; name=&quot;companyName&quot; placeholder=&quot;Nama Pelanggan&quot;&gt;
                                             &lt;/div&gt;
                                         &lt;/div&gt;
                                      &lt;/div&gt;
                              
                                      &lt;div class=&quot;form-group&quot;&gt;
                                         &lt;label for=&quot;alamat_pelanggan&quot; class=&quot;control-label col-sm-2&quot;&gt;Alamat&lt;/label&gt;
                                         &lt;div class=&quot;col-sm-3&quot;&gt;
                                             &lt;div class=&quot;input-group&quot;&gt;
                                                 &lt;div class=&quot;input-group-addon&quot;&gt;
                                                     &lt;span class=&quot;glyphicon glyphicon-bookmark&quot;&gt;&lt;/span&gt;
                                                 &lt;/div&gt;
                                                 &lt;input type=&quot;text&quot; id=&quot;alamat_pelanggan&quot; class=&quot;form-control&quot; name=&quot;companyAddress1&quot; placeholder=&quot;Alamat&quot;&gt;
                                             &lt;/div&gt;
                                         &lt;/div&gt;
                                      &lt;/div&gt;
                                      &lt;div class=&quot;form-group&quot;&gt;
                                      
                                         &lt;label for=&quot;produk&quot; class=&quot;control-label col-sm-2&quot;&gt;Produk&lt;/label&gt;
                                         &lt;div class=&quot;col-sm-3&quot;&gt;
                                             &lt;div class=&quot;input-group&quot;&gt;
                                                 &lt;div class=&quot;input-group-addon&quot;&gt;
                                                     &lt;span class=&quot;glyphicon glyphicon-tags&quot;&gt;&lt;/span&gt;
                                                 &lt;/div&gt;
                                                 &lt;select name=&quot;companyProduct&quot; id=&quot;produk&quot; class=&quot;form-control&quot;&gt;
                                                     &lt;option value=&quot;Kartu Halo&quot;&gt;Kartu Halo&lt;/option&gt;
                                                     &lt;option value=&quot;Kartu AS&quot;&gt;Kartu AS&lt;/option&gt;
                                                     &lt;option value=&quot;Kartu Simpati&quot;&gt;Kartu Simpati&lt;/option&gt;
                                                 &lt;/select&gt;
                                             &lt;/div&gt;
                                         &lt;/div&gt;
                                      &lt;/div&gt;
                                      &lt;div class=&quot;form-group&quot;&gt;
                                         &lt;label for=&quot;hp&quot; class=&quot;control-label col-sm-2&quot;&gt;Telepon&lt;/label&gt;
                                         &lt;div class=&quot;col-sm-3&quot;&gt;
                                             &lt;div class=&quot;input-group&quot;&gt;
                                                 &lt;div class=&quot;input-group-addon&quot;&gt;
                                                     &lt;span class=&quot;glyphicon glyphicon-phone&quot;&gt;&lt;/span&gt;
                                                 &lt;/div&gt;
                                                 &lt;input type=&quot;text&quot; id=&quot;hp&quot; class=&quot;form-control&quot; name=&quot;companyHp&quot; placeholder=&quot;No Handphone&quot;&gt;
                                             &lt;/div&gt;
                                         &lt;/div&gt;
                                      &lt;/div&gt;
                                      &lt;div class=&quot;form-group&quot;&gt;
                                         &lt;label for=&quot;tgl&quot; class=&quot;control-label col-sm-2&quot;&gt;Tanggal&lt;/label&gt;
                                         &lt;div class=&quot;col-sm-3&quot;&gt;
                                             &lt;div class=&quot;input-group&quot;&gt;
                                                 &lt;div class=&quot;input-group-addon&quot;&gt;
                                                     &lt;span class=&quot;glyphicon glyphicon-calender&quot;&gt;&lt;/span&gt;
                                                 &lt;/div&gt;
                                                 &lt;?php
                                                      include &quot;fungsi/fungsi_indotgl.php&quot;;
                                                      $tanggal = date(&#039;Y-m-d&#039;);
                                                      $tglFinal = tgl_indo($tanggal);
                                                      ?&gt;
                                                 &lt;input type=&quot;text&quot; id=&quot;tgl&quot; class=&quot;form-control&quot; disabled=&quot;&quot; name=&quot;companyName&quot; value=&quot;&lt;?php echo $tglFinal; ?&gt;&quot;&gt;
                                             &lt;/div&gt;
                                         &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td width=&quot;97%&quot; valign=&quot;top&quot; align=&quot;center&quot; colspan=&quot;5&quot; style=&quot;border-style: none; border-width: medium&quot;&gt;
                              &lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;&lt;b&gt;Mohon kesediaan Anda untuk memberikan 
                              penilaian dan masukan kepada Toko Sparepart dan Bengkel Hing DW Motor Caruban, dimana hal ini sangat bermanfaat 
                              untuk meningkatkan kualitas layanan kami.&lt;br&gt;
                              &lt;/b&gt;&lt;i&gt;Silahkan diisi dengan mengklik option radio 
                               serta keterangan sesuai dengan penilaian Anda 
                              pada kolom yang telah disediakan&lt;/i&gt;&lt;/font&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td colspan=&quot;9&quot;&gt;
                                  &lt;table class=&quot;table table-striped table-bordered&quot;&gt;
                                      &lt;thead&gt;
                                          &lt;th width=&#039;3%&#039; &gt;&lt;b&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;2&#039;&gt;No&lt;/font&gt;&lt;/b&gt;&lt;/th&gt;
                                          &lt;th colspan=&#039;2&#039;&gt;&lt;p align=&#039;center&#039;&gt;&lt;b&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;2&#039;&gt;DESKRIPSI&lt;/font&gt;&lt;/b&gt;&lt;/th&gt;
                                          &lt;th colspan=&quot;5&quot; bgcolor=&#039;#FFFF00&#039;&gt;&lt;p align=&#039;center&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;2&#039;&gt;KUALITAS&lt;/font&gt;&lt;/th&gt;
                                      &lt;/thead&gt;
                                      &lt;tbody&gt;
                                          &lt;?php
                                          include &quot;koneksi.php&quot;;
                                          error_reporting(0);
                                          $no = 1;
                                          $sql = mysql_query(&quot;SELECT * FROM tgroup&quot;);
                                          while($data = mysql_fetch_array($sql)){
                                              $id = $data[groupId];
                                              echo &quot;&lt;tr valign=&#039;top&#039;&gt;
                                                      &lt;td&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;2&#039; colspan=&#039;1&#039;&gt;&lt;b&gt; $no&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
                                                      &lt;td colspan=&#039;2&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;2&#039;&gt;&lt;b&gt;$data[groupName]&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
                                                      
                                                      &lt;td height=&#039;25&#039; width=&#039;8%&#039; bgcolor=&#039;#000000&#039;&gt;&lt;p align=&#039;center&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;1&#039; color=&#039;white&#039;&gt;A&lt;br&gt;(Sangat Baik)&lt;/font&gt;&lt;/td&gt;
                                                      &lt;td height=&#039;25&#039; width=&#039;8%&#039; bgcolor=&#039;#000000&#039;&gt;&lt;p align=&#039;center&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;1&#039; color=&#039;white&#039;&gt;B&lt;br&gt;(Baik)&lt;/font&gt;&lt;/td&gt;
                                                      &lt;td height=&#039;25&#039; width=&#039;8%&#039; bgcolor=&#039;#000000&#039;&gt;&lt;p align=&#039;center&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;1&#039; color=&#039;white&#039;&gt;C&lt;br&gt;(Cukup)&lt;/font&gt;&lt;/td&gt;
                                                      &lt;td height=&#039;25&#039; width=&#039;8%&#039; bgcolor=&#039;#000000&#039;&gt;&lt;p align=&#039;center&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;1&#039; color=&#039;white&#039;&gt;D&lt;br&gt;(Buruk)&lt;/font&gt;&lt;/td&gt;
                                                      &lt;td height=&#039;25&#039; width=&#039;8%&#039; bgcolor=&#039;#000000&#039;&gt;&lt;p align=&#039;center&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;1&#039; color=&#039;white&#039;&gt;E&lt;br&gt;(Sangat Buruk)&lt;/font&gt;&lt;/td&gt;
                                                  &lt;/tr&gt;&quot;;
                                                  
                                              $hasil = mysql_query(&quot;SELECT * FROM tdescription, tgroup WHERE tdescription.groupId = &#039;$id&#039; AND tdescription.groupId = tgroup.groupId ORDER BY tgroup.groupId&quot;);
                                              $i = 1;
                                              while ($r = mysql_fetch_array($hasil)){
                                              
                                                  echo &quot;&lt;tr&gt;
                                                          &lt;td colspan=&#039;1&#039;&gt;&lt;/td&gt;
                                                         
                                                          &lt;td colspan=&#039;2&#039;&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;2&#039;&gt; $r[description]&lt;/font&gt;&lt;/td&gt;
                                                          &lt;td align=&#039;center&#039;&gt; &lt;input type=&#039;radio&#039; name=&#039;asfa$i$data[groupId]&#039; value=&#039;A&#039;&gt; &lt;/td&gt;
                                                          &lt;td align=&#039;center&#039;&gt; &lt;input type=&#039;radio&#039; name=&#039;asfa$i$data[groupId]&#039; value=&#039;B&#039;&gt; &lt;/td&gt;
                                                          &lt;td align=&#039;center&#039;&gt; &lt;input type=&#039;radio&#039; name=&#039;asfa$i$data[groupId]&#039; value=&#039;C&#039;&gt; &lt;/td&gt;
                                                          &lt;td align=&#039;center&#039;&gt; &lt;input type=&#039;radio&#039; name=&#039;asfa$i$data[groupId]&#039; value=&#039;D&#039;&gt; &lt;/td&gt;
                                                          &lt;td align=&#039;center&#039;&gt; &lt;input type=&#039;radio&#039; name=&#039;asfa$i$data[groupId]&#039; value=&#039;E&#039;&gt; &lt;/td&gt;
                                                          &lt;/tr&gt;&quot;;
                                                  $i++;
                                              }
                                              echo &quot;&lt;br&gt;&quot;;
                                              $no++;
                                          }
                                          ?&gt;
                                      &lt;/tbody&gt;
                                  &lt;/table&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td colspan=&quot;8&quot;&gt;    
                                      &lt;div class=&quot;well&quot;&gt;
                                          &lt;h4&gt;Komentar / Saran...&lt;/h4&gt;
                                        
                                              &lt;div class=&quot;form-group&quot;&gt;
                                                  &lt;textarea name=&#039;suggestion&#039; class=&quot;form-control&quot; rows=&quot;3&quot; placeholder=&quot;Tulis Komentar dan Saran...&quot;&gt;&lt;/textarea&gt;
                                              &lt;/div&gt;
                                             
                                      &lt;/div&gt;
                                  &lt;hr&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td colspan=&quot;8&quot;&gt; &lt;center&gt;&lt;button type=&quot;submit&quot; class=&quot;btn btn-primary btn-lg&quot;&gt;Submit&lt;/button&gt;&lt;/center&gt; &lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td width=&quot;97%&quot; valign=&quot;top&quot; align=&quot;center&quot; colspan=&quot;5&quot; style=&quot;border-style: none; border-width: medium&quot;&gt;
                              &lt;center class=&quot;well&quot;&gt;
                              &lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;&lt;b&gt;Terima Kasih Atas Waktu dan Masukan yang anda berikan,Semua masukan yang anda berikan &lt;/b&gt; &lt;/i&gt;&lt;/font&gt;
                              &lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;&lt;b&gt;akan kami terima sebagai sarana bagi kami untuk meningkatkan kulaitas pelayanan kami&lt;/b&gt;  &lt;/i&gt;&lt;/font&gt;
                              &lt;/center&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt;
                  &lt;/form&gt;
              &lt;/div&gt;    
          &lt;/div&gt;
       &lt;/div&gt;
    &lt;/div&gt;
    
&lt;/div&gt;
&lt;nav class=&quot;navbar navbar-inverse navbar-absolut-bottom&quot; role=&quot;navigation&quot;&gt;
    &lt;div class=&quot;container&quot;&gt;
        &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
        &lt;div class=&quot;navbar-header&quot;&gt;
            &lt;button type=&quot;button&quot; class=&quot;navbar-toggle&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#bs-example-navbar-collapse-1&quot;&gt;
                &lt;span class=&quot;sr-only&quot;&gt;Toggle navigation&lt;/span&gt;
                &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
                &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
                &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt;
            &lt;/button&gt;
        &lt;/div&gt;
        &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
        &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;bs-example-navbar-collapse-1&quot;&gt;
           &lt;center&gt;&lt;font color=&quot;white&quot; size=&quot;1&quot; &gt;Created By Wahyu Budiman&lt;/font&gt;&lt;/center&gt;
        &lt;/div&gt;
        &lt;!-- /.navbar-collapse --&gt;
    &lt;/div&gt;
    &lt;!-- /.container --&gt;
&lt;/nav&gt;
&lt;div class=&quot;modal fade&quot; id=&quot;login&quot;&gt;
    &lt;form name=&quot;login&quot; action=&quot;./adminweb/cek_login.php&quot; method=&quot;POST&quot; onSubmit=&quot;return validasi(this)&quot; &gt;
        &lt;div class=&quot;modal-dialog&quot;&gt;
            &lt;div class=&quot;modal-content&quot;&gt;
                &lt;div class=&quot;modal-header&quot; bgcolor=&quot;black&quot;&gt;
                    &lt;button class=&quot;close&quot; data-dismiss=&quot;modal&quot;&gt;&amp;times;&lt;/button&gt;
                    &lt;div class=&quot;modal-title&quot; &gt;
                       &lt;center&gt;&lt;h4&gt;Login Admin&lt;/h4&gt;&lt;/center&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&quot;modal-body&quot;&gt;
                    &lt;div class=&quot;form-horizontal&quot;&gt;
                        &lt;div class=&quot;form-group&quot;&gt;
                            &lt;label for=&quot;username&quot; class=&quot;col-sm-3 control-label&quot;&gt;Username&lt;/label&gt;
                            &lt;div class=&quot;col-sm-5&quot;&gt;
                                &lt;div class=&quot;input-group&quot;&gt;
                                    &lt;div class=&quot;input-group-addon&quot;&gt;
                                        &lt;span class=&quot;glyphicon glyphicon-user&quot;&gt;&lt;/span&gt;
                                    &lt;/div&gt;
                                    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;username&quot; placeholder=&quot;Username&quot;&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class=&quot;form-group&quot;&gt;
                            &lt;label for=&quot;username&quot; class=&quot;col-sm-3 control-label&quot;&gt;Password&lt;/label&gt;
                            &lt;div class=&quot;col-sm-5&quot;&gt;
                                &lt;div class=&quot;input-group&quot;&gt;
                                    &lt;div class=&quot;input-group-addon&quot;&gt;
                                        &lt;span class=&quot;glyphicon glyphicon-lock&quot;&gt;&lt;/span&gt;
                                        
                                    &lt;/div&gt;
                                    &lt;input type=&quot;password&quot; class=&quot;form-control&quot; name=&quot;password&quot; placeholder=&quot;Password&quot;&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class=&quot;form-group&quot;&gt;
                            &lt;label for=&quot;&quot; class=&quot; control-label col-sm-3&quot;&gt;&lt;/label&gt;
                            &lt;div class=&quot;col-sm-1&quot;&gt;
                                &lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-log-in&quot;&gt;&lt;/span&gt; Masuk&lt;/button&gt;
                            
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&quot;modal-footer&quot;&gt;
                    &lt;center&gt;Copyright &amp;copy; 2023 Toko Sparepart dan Bengkel Hing DW Motor Caruban&lt;br&gt; All rights reserved.&lt;/center&gt;
                    &lt;center&gt;Created by Na.&lt;/center&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/form&gt;
&lt;/div&gt;


&lt;script src=&quot;js/jquery.js&quot;&gt;&lt;/script&gt;

&lt;!-- Bootstrap Core JavaScript --&gt;
&lt;script src=&quot;js/bootstrap.min.js&quot;&gt;&lt;/script&gt;

</body>

</html> ](https://link.com)

aksikuesioner.php [<link href="css/bootstrap.min.css" rel="stylesheet"> <?php error_reporting(0); include "koneksi.php"; include "fungsi/fungsi_indotgl.php"; $companyName = $_POST[companyName]; $companyProduct = $_POST[companyProduct]; $companyAddress = $_POST[companyAddress1]; $companyPhone = $_POST[companyPhone]; $companyFax = $_POST[companyHp]; $companyPF = $companyPhone." / ".$companyFax; $suggestion = $_POST[suggestion]; $agreeCity = $_POST[agreeCity]; $date = date('Y-m-d'); $companyId = date('Ymd his');

$no_hitung = 1; $sql_hitung = mysql_query("SELECT * FROM tgroup"); while($data_hitung = mysql_fetch_array($sql_hitung)){ $id_hitung = $data_hitung[groupId]; $hasil_hitung = mysql_query("SELECT * FROM tdescription, tgroup WHERE tdescription.groupId = '$id_hitung' AND tdescription.groupId = tgroup.groupId ORDER BY tgroup.groupId"); $i_hitung = 1; while ($r_hitung = mysql_fetch_array($hasil_hitung)){ $id_hitung = $data_hitung[groupId]; $asfa_hitung = $_POST['asfa'.$i_hitung.$id_hitung]; if (empty($asfa_hitung)){ echo "<script lang=javascript> window.alert('Anda belum mengisi kuisioner atau ada kuisioner yang belum terisi..!'); history.back(); </script>"; exit; }

	$i_hitung++;
}
echo &quot;&lt;br&gt;&quot;;
$no_hitung++;

}

if (empty($companyName)){ echo "<script lang=javascript> window.alert('Isi Nama Anda'); history.back(); </script>"; exit; }

elseif (empty($companyAddress)){ echo "<script lang=javascript> window.alert('Isi Alamat Anda'); history.back(); </script>"; exit; }

elseif (empty($companyFax)){ echo "<script lang=javascript> window.alert('Isi No HP Anda'); history.back(); </script>"; exit; }

else{ $no = 1; $sql = mysql_query("SELECT * FROM tgroup"); mysql_query("INSERT INTO tcompany(companyId,companyName,companyAddress,companyPhoneHP,dateSurvey,suggestion,product) VALUES('$companyId','$companyName','$companyAddress','$companyPF','$date','$suggestion','$companyProduct')"); while($data = mysql_fetch_array($sql)){ $id = $data[groupId]; $hasil = mysql_query("SELECT * FROM tdescription, tgroup WHERE tdescription.groupId = '$id' AND tdescription.groupId = tgroup.groupId ORDER BY tgroup.groupId"); $i = 1; while ($r = mysql_fetch_array($hasil)){ $id = $data[groupId]; $asfa = $_POST['asfa'.$i.$id]; // echo "$i $asfa<br>"; if ($asfa == 'A'){ mysql_query("INSERT INTO tanswer (descriptionId,groupId,companyId,jawaban,jawabanA,jawabanB,jawabanC,jawabanD,jawabanE) VALUES('$r[descriptionId]','$r[groupId]','$companyId','$asfa','1','0','0','0','0')"); } elseif($asfa == 'B'){ mysql_query("INSERT INTO tanswer (descriptionId,groupId,companyId,jawaban,jawabanA,jawabanB,jawabanC,jawabanD,jawabanE) VALUES('$r[descriptionId]','$r[groupId]','$companyId','$asfa','0','1','0','0','0')"); } elseif($asfa == 'C'){ mysql_query("INSERT INTO tanswer (descriptionId,groupId,companyId,jawaban,jawabanA,jawabanB,jawabanC,jawabanD,jawabanE) VALUES('$r[descriptionId]','$r[groupId]','$companyId','$asfa','0','0','1','0','0')"); } elseif($asfa == 'D'){ mysql_query("INSERT INTO tanswer (descriptionId,groupId,companyId,jawaban,jawabanA,jawabanB,jawabanC,jawabanD,jawabanE) VALUES('$r[descriptionId]','$r[groupId]','$companyId','$asfa','0','0','0','1','0')"); } else{ mysql_query("INSERT INTO tanswer (descriptionId,groupId,companyId,jawaban,jawabanA,jawabanB,jawabanC,jawabanD,jawabanE) VALUES('$r[descriptionId]','$r[groupId]','$companyId','$asfa','0','0','0','0','0')"); } $i++; } echo "<br>"; $no++; }

echo &quot;&lt;center&gt;&lt;font face=&#039;Tahoma&#039; size=&#039;2&#039;&gt;
		Pelanggan yang terhormat,&lt;br&gt;&lt;br&gt;
		Terima kasih atas waktu yang telah diluangkan untuk melengkapi survey yang kami sediakan. &lt;br&gt;
		Pendapat Anda sangat berarti bagi kami untuk meningkatkan pelayanan. &lt;br&gt;&lt;br&gt;
		Hormat kami, &lt;br&gt;&lt;br&gt;
		Management&lt;br&gt;
		Toko Sparepart dan Bengkel Hing DW Motor Caruban &lt;/font&gt;&lt;br&gt;
		&lt;a href=&#039;./index.php&#039;&gt;
		&lt;button  class=&#039;btn btn-lg btn-info&#039;&gt;&lt;span class=&#039;glyphicon glyphicon-arrow-left&#039;&gt;&lt;/span&gt; Kembali&lt;/button&gt;
		&lt;/a&gt;
		&lt;/center&gt;&quot;;

}

?>](https://link.com)

avatar na06
@na06

1 Kontribusi 0 Poin

Dipost 1 tahun yang lalu

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban