Sabtu, 21 September 2013

PHP Indonesia - Facebook: function get_kode($username,$password) { $this->db...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
function get_kode($username,$password) { $this->db...
Sep 22nd 2013, 05:53, by Fakhrunnisa Fauziah Lbl

Fakhrunnisa Fauziah Lbl 5:53am Sep 22
function get_kode($username,$password)
{
$this->db->where(array('username'=>$username,'password'=>$password));
$query=$this->db->get('t_user');
foreach ($query->result() as $row)
{
$hasil=$row->kode_petugas;
return $hasil;
}
}

A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClass::$kode_petugas

Filename: models/m_login.php

Line Number: 44 (yang kode_petugas)
harusnya gimana? :o

Dimas Edubuntu Samid 5:56am Sep 22
error tersebut menunjukkan bahwa tidak ada kolom kode_petugas cek di tabelnya lagi mba / mas atau bisa juga querynya bernilai null / empty tanpa ada validasi data dulu dan dipaksa untuk menampilkan data. :)

ASOLOLE JOSSSSSSSSSSSSSSSSSSS

Fakhrunnisa Fauziah Lbl 6:20am Sep 22
iya null, harusnya not null ?

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar