Welcome Guest, Not a member yet? Register   Sign In
Codeigniter - Indonesia Community

bang, mau tanya untuk membuat urutan data di dari angka besar ke kecil atau sebaliknya di pagination codeigniter 4 bagaimana ya?
Reply

selamat siang senior dan para suhu..
mau tanya nih, saya masih pake CI 3, pake Wamp sever, tiba2 waktu akses project muncul notifikasi This site can’t be reached, localhost refused to connect.
tetapi untuk buka phpmyadmin lancar jaya, saya coba buka project native php (gak pake CI), bisa juga.
mohon solusinya dari para senior dan para suhu.. terima kasih..
Reply

(08-20-2021, 12:02 AM)aahas Wrote: selamat siang senior dan para suhu..
mau tanya nih, saya masih pake CI 3, pake Wamp sever, tiba2 waktu akses project muncul notifikasi This site can’t be reached, localhost refused to connect.
tetapi untuk buka phpmyadmin lancar jaya, saya coba buka project native php (gak pake CI), bisa juga.
mohon solusinya dari para senior dan para suhu.. terima kasih..

Coba check log file apache / php.
set CI_ENVIRONMENT = development di .env buat display error.
Reply

salam kenal dan mohon bimbingannya para master
Reply

(11-13-2020, 02:03 AM)nuja Wrote:
(08-19-2020, 06:03 PM)pembalap Wrote: Assalamualaikum
Salam kenal teman-teman senior di forum ini. Mudah-mudahan kita bisa berbagi, apalgi di tengah pandemi dan tak bisa bertatap muka secara langsung
bang mau tanya, abang belajar CI nya yang 3 atau 4 ? saya baru mau mulai soalnya minta sarannya juga dong, terima kasih

Salam kenal semua..
Saran saya lebih baik langsung ke CI4 saja.
Dari segi performance cuman beda sedikit antara CI3 - CI4.
CI3 lebih cepat tentu karena CI4 sudah banyak ketambahan fitur.
Tapi menurut saya CI4 masih tetap fast + lebih secure lagi.
Reply

klo mau post minta bantuan dimana ya man teman
masi bingung
thanks
Reply

mungkin disini, tapi ada baiknya juga post di region global
Let's stay alive, Even if it's useless.
Reply

haloo semua. mau nanya nih kawan2. mohon bantuannya ya.
//ini viewnya//

Code:
$no = 1;
                  $asked = $this->db->query("SELECT * FROM kuisioner where id_dimensi = '" . $ks['id'] . "'",);
                  foreach ($asked->result_array() as $ask) {
                  ?>
                    <input type="text" name="<?= $this->session->userdata('nama'); ?>" value="<?= $this->session->userdata('nama'); ?>">
                    <tr>

                      <td bgcolor=#F9EDED align="center">
                        <font face="Calibri" size="3"><?= $no ?></font>
                      </td>
                      <td bgcolor=#F9EDED>
                        <font face="Calibri" size="3"><?= $ask['pertanyaan'] ?></font>
                      </td>

                      <td bgcolor=#F9EDED align="center">
                        <input name="p[<?= $ask['id_kuisioner'] ?>]" type="radio" value="1" required>
                      </td>
                      <td bgcolor=#F9EDED align="center">
                        <input name="p[<?= $ask['id_kuisioner'] ?>]" type="radio" value="2" required>
                      </td>
                      <td bgcolor=#F9EDED align="center">
                        <input name="p[<?= $ask['id_kuisioner'] ?>]" type="radio" value="3" required>
                      </td>
                      <td bgcolor=#F9EDED align="center">
                        <input name="p[<?= $ask['id_kuisioner'] ?>]" type="radio" value="4" required>
                      </td>

                      <td bgcolor=#F9EDED align="center">
                        <input name="i[<?= $ask['id_kuisioner'] ?>]" type="radio" value="1" required>
                      </td>
                      <td bgcolor=#F9EDED align="center">
                        <input name="i[<?= $ask['id_kuisioner'] ?>]" type="radio" value="2" required>
                      </td>
                      <td bgcolor=#F9EDED align="center">
                        <input name="i[<?= $ask['id_kuisioner'] ?>]" type="radio" value="3" required>
                      </td>
                      <td bgcolor=#F9EDED align="center">
                        <input name="i[<?= $ask['id_kuisioner'] ?>]" type="radio" value="4" required>
                      </td>
                    </tr>


jika view saya begini, di controller untuk syntax simpan dan tambah data ke database nya gimana ya kawan2?

Code:
sebelumnyya saya buat controller seperti dibawah ini 

Code:
public function add()
  {
    $data = [
      'nama_responden' => $this->input->post('nama'),
      'p1' => $this->input->post('p1'),
      'p2' => $this->input->post('p2'),
      'p3' => $this->input->post('p3'),
      'p4' => $this->input->post('p4'),
      'p5' => $this->input->post('p5'),
      'p6' => $this->input->post('p6'),
      'p7' => $this->input->post('p7'),
      'p8' => $this->input->post('p8'),
      'p9' => $this->input->post('p9'),
      'p10' => $this->input->post('p10'),
      'p11' => $this->input->post('p11'),
      'p12' => $this->input->post('p12'),
      'p13' => $this->input->post('p13'),
      'p14' => $this->input->post('p14'),
      'p15' => $this->input->post('p15'),
      'i1' => $this->input->post('i1'),
      'i2' => $this->input->post('i2'),
      'i3' => $this->input->post('i3'),
      'i4' => $this->input->post('i4'),
      'i5' => $this->input->post('i5'),
      'i6' => $this->input->post('i6'),
      'i7' => $this->input->post('i7'),
      'i8' => $this->input->post('i8'),
      'i9' => $this->input->post('i9'),
      'i10' => $this->input->post('i10'),
      'i11' => $this->input->post('i11'),
      'i12' => $this->input->post('i12'),
      'i13' => $this->input->post('i13'),
      'i14' => $this->input->post('i14'),
      'i15' => $this->input->post('i15')

    ];

    $this->db->insert('respon_kuisioner', $data);
    $this->session->set_flashdata('message', '<div class="alert alert-success" role="alert">
      Jawaban sudah di input
    </div>');
    redirect('responden/dashboard');
  }

tapi malah pesan errornya database error karena data yang udah input gk kebaca alias null.

jadi gimana ya solusi untuk controller nya kawan

btw ini saya pake CI3 
tolong direspon ya kwn2. program skripsi soalnya wkwk
Reply

Salam kenal suhu - suhu skalian pengguna baru CI4
Reply




Theme © iAndrew 2016 - Forum software by © MyBB