Haloo! Selamat Datang di Komunitas Private Training Web Development (49103 Members, 473 Projects, 3791 Topic, 10261 Comments)

Butuh karyawan baru? atau seorang Web Developer (Part-time/Freelance/Full-time), cari disini : Members Area Jobs!
MANGGALEH - Point of Sales Codeigniter - Daftar Promosi Error
Muntadzir Ilham Mengatakan : Members -
Rate Topic :
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2.  
  3. Bagaimana mengatasi jika Ada pesan error saat membuka menu Produk > Daftar Promosi
  4.  
  5. A PHP Error was encountered
  6. Severity: Notice
  7.  
  8. Message: Undefined variable: jenis
  9.  
  10. Filename: mod_barang/view_promosi.php
  11.  
  12. Line Number: 57
  13.  
  14. Backtrace:
  15.  
  16. File: /home/sapoycor/public_html/pj/application/views/app/mod_barang/view_promosi.php
  17. Line: 57
  18. Function: _error_handler
  19.  
  20. File: /home/sapoycor/public_html/pj/application/libraries/Template.php
  21. Line: 16
  22. Function: view
  23.  
  24. File: /home/sapoycor/public_html/pj/application/controllers/App.php
  25. Line: 1573
  26. Function: load
  27.  
  28. File: /home/sapoycor/public_html/pj/index.php
  29. Line: 294
  30. Function: require_once
Ada 1 File Kiriman :
1. 20190616_044951.jpg (162 KB)
Robby Prihandaya Mengatakan :
Admin -
  1. Assalamualaikum,.. buka file : application/views/app/mod_barang/view_promosi.php
  2. lalu kemudian cari :
  3.  
  4. if (!is_null($row['nama_kategori'])){
  5. $jenis = $row['nama_kategori'];
  6. }elseif(!is_null($row['nama_subkategori'])){
  7. $jenis = $row['nama_subkategori'];
  8. }elseif(!is_null($row['nama_barang'])){
  9. $jenis = $row['nama_barang'];
  10. }
  11.  
  12. dan ubah menjadi :
  13.  
  14. if (!is_null($row['nama_kategori'])){
  15. $jenis = $row['nama_kategori'];
  16. }elseif(!is_null($row['nama_subkategori'])){
  17. $jenis = $row['nama_subkategori'];
  18. }elseif(!is_null($row['nama_barang'])){
  19. $jenis = $row['nama_barang'];
  20. }else{
  21. $jenis = 'Tidak ada';
  22. }

Muntadzir Ilham Mengatakan :
Members -
  1. Assalamualaikum,..
  2. wah sip,, terimakasih mas atas bantuannya, sangat membantu

Maaf, Untuk Memberikan Komentar Anda Harus Login !!!